Fixes #21410: Expand Ruff exclusions and standardize formatting settings #346

Closed
opened 2026-04-05 16:26:47 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @pheus on 2/15/2026

Fixes: #21410

This PR tightens up our Ruff defaults to better match the repository’s layout and existing style conventions.

  • Expands exclude to skip common virtualenv/cache/build directories (and netbox/project-static/**)
  • Sets indent-width = 4 at the top level
  • Enables respect-gitignore = true so Ruff follows the repo’s ignore rules
  • Aligns formatter defaults (indent-style = "space", line-ending = "lf", quote-style = "single")
  • Adds comments to make the intent of each setting easier to follow

No functional code changes are intended.
Thanks for review!

*Originally created by @pheus on 2/15/2026* ### Fixes: #21410 This PR tightens up our Ruff defaults to better match the repository’s layout and existing style conventions. - Expands `exclude` to skip common virtualenv/cache/build directories (and `netbox/project-static/**`) - Sets `indent-width = 4` at the top level - Enables `respect-gitignore = true` so Ruff follows the repo’s ignore rules - Aligns formatter defaults (`indent-style = "space"`, `line-ending = "lf"`, `quote-style = "single"`) - Adds comments to make the intent of each setting easier to follow No functional code changes are intended. Thanks for review!
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#346