Enable additional Ruff validation rules #10452

Closed
opened 2025-12-29 21:31:37 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Nov 7, 2024).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

We currently employ Ruff for linting, using the default rule set (excluding a few rules). We can increase linter coverage by enabling preview mode and including additional rules.

Specifically, I propose including the E100, E200, and E300 series of rules (most of which are currently in preview mode), but upon further exploration we might find it prudent to include additional rules.

For reference, Ruff currently reports a total of 29 trivial errors attributable to these rules.

Justification

This will increase linter coverage with little overhead cost.

Originally created by @jeremystretch on GitHub (Nov 7, 2024). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes We currently employ [Ruff](https://docs.astral.sh/ruff/) for linting, using the default rule set (excluding a few rules). We can increase linter coverage by enabling [preview mode](https://docs.astral.sh/ruff/preview/#deprecated-rules) and including additional rules. Specifically, I propose including the [E100, E200, and E300](https://docs.astral.sh/ruff/rules/#error-e) series of rules (most of which are currently in preview mode), but upon further exploration we might find it prudent to include additional rules. For reference, Ruff currently reports a total of 29 trivial errors attributable to these rules. ### Justification This will increase linter coverage with little overhead cost.
adam added the status: acceptedtype: housekeepingnetbox labels 2025-12-29 21:31:37 +01:00
adam closed this issue 2025-12-29 21:31:37 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10452