Skip to content

Cargo and Ruff linting improvements#15

Merged
BradyPlanden merged 5 commits intomainfrom
linting-improvements
Feb 1, 2026
Merged

Cargo and Ruff linting improvements#15
BradyPlanden merged 5 commits intomainfrom
linting-improvements

Conversation

@BradyPlanden
Copy link
Owner

Adds rules for strict linting

   Configures stricter linting for both Python and Rust codebases, and fixes the identified issues

   Python (Ruff):
   - Adds ARG, C90, FURB, PERF, PLE/PLR/PLW, PT,
     PTH, RET, RUF, SIM

   Rust (Clippy):
   - Enable pedantic mode with sensible exceptions
   - Add workspace-level lint configuration
  Adds additional global allow's for linting of tests, benchmarks.
@BradyPlanden
Copy link
Owner Author

/gemini review

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This is a great pull request that significantly improves code quality and consistency by enabling stricter linting rules for both Rust (clippy) and Python (ruff). The changes are extensive and demonstrate a commitment to maintainability, from using more idiomatic language features and improving performance to enhancing documentation and test robustness. The new lint configurations are well-thought-out, with sensible exceptions for scientific and test code. I have one suggestion regarding the scope of some disabled clippy lints to further improve safety.

@BradyPlanden BradyPlanden merged commit 76cf1c1 into main Feb 1, 2026
7 checks passed
@BradyPlanden BradyPlanden deleted the linting-improvements branch February 1, 2026 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant