Closed jeremystretch closed 21 hours ago
Ruff currently shows ~1098 E501 errors in the feature
branch. The biggest offenders currently are the migrations, tests, and urls.py
files within each app. The migrations can easily be reformatted with Ruff, and #18023 should address the line length violations from URL paths. We might be able to reformat the tests automatically but these ~273 errors might need to be cleaned up manually.
Proposed Changes
Configure Ruff to enforce a maximum line length of 120 characters for Python files. This includes:
urls.py
)line-length = 120
toruff.toml
ignore
Justification
NetBox adopted a maximum line length of 120 characters years ago, however it has never been enforced. This will improve linter coverage.