Add ruff to the project #6
2 changed files with 4 additions and 2 deletions
Enable ERA in ruff
Dead code belongs in the history, not in comments
commit
8f36a740d7
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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()`
|
||||
|
|
|
|||
Loading…
Reference in a new issue