Add ruff to the project #6

Merged
alexander merged 5 commits from add-ruff into develop 2026-11-28 05:01:26 +01:00
Owner
No description provided.
`ruff` runs alongside `flake8` and `isort`,
with the rules aligned to theirs:
- `noqa` comments go where both tools expect them
- `import`s stay sorted case-insensitively,
  now stated explicitly in both tools
- `print()` in the "docs" session became `session.log()`
`ruff format` adds parentheses around multi-line lambda bodies
and removes blank lines after block openers,
both of which `black` accepts.

Lines with `# type:ignore` are shortened
because `black` counts pragma comments toward the line length
and `ruff` does not.
`flynt` converts old-style string formatting
into f-strings before `black` formats the result
Dead code belongs in the history, not in comments
Enable PLR in ruff
All checks were successful
CI / Checks (Python 3.13) (push) Successful in 1m43s
a24db98262
alexander merged commit fb87326d66 into develop 2026-11-28 05:01:26 +01:00
alexander deleted branch add-ruff 2026-11-28 05:01:26 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
alexander/velofy!6
No description provided.