Add ruff to the project #6

Merged
alexander merged 5 commits from add-ruff into develop 2026-11-28 05:01:26 +01:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 8f36a740d7 - Show all commits

Enable ERA in ruff

Dead code belongs in the history, not in comments
Alexander Hess 2026-11-28 04:55:19 +01:00
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -229,8 +229,8 @@ def lint_code(session: Session) -> None:
# - Only for the *.py files to be packaged
# - It then needs the developed package and its dependencies installed
# as it treats missing packages as `Any` and reports false successes
# session.run('mypy', '--version')
# session.run('mypy', PACKAGE_LOCATION)
# session.run('mypy', '--version') # noqa:ERA001
# session.run('mypy', PACKAGE_LOCATION) # noqa:ERA001
@nox.session(name="test", python=MAIN_PYTHON)

View file

@ -478,6 +478,8 @@ select = [
# =======================================
# Violations not covered by `flake8` above
# =======================================
# eradicate => no commented-out code
"ERA",
# isort => imports are sorted
"I",
# flake8-print => no `print()`