Enable ERA in ruff
Dead code belongs in the history, not in comments
This commit is contained in:
parent
707b4ab652
commit
8f36a740d7
2 changed files with 4 additions and 2 deletions
|
|
@ -229,8 +229,8 @@ def lint_code(session: Session) -> None:
|
||||||
# - Only for the *.py files to be packaged
|
# - Only for the *.py files to be packaged
|
||||||
# - It then needs the developed package and its dependencies installed
|
# - It then needs the developed package and its dependencies installed
|
||||||
# as it treats missing packages as `Any` and reports false successes
|
# as it treats missing packages as `Any` and reports false successes
|
||||||
# session.run('mypy', '--version')
|
# session.run('mypy', '--version') # noqa:ERA001
|
||||||
# session.run('mypy', PACKAGE_LOCATION)
|
# session.run('mypy', PACKAGE_LOCATION) # noqa:ERA001
|
||||||
|
|
||||||
|
|
||||||
@nox.session(name="test", python=MAIN_PYTHON)
|
@nox.session(name="test", python=MAIN_PYTHON)
|
||||||
|
|
|
||||||
|
|
@ -478,6 +478,8 @@ select = [
|
||||||
# =======================================
|
# =======================================
|
||||||
# Violations not covered by `flake8` above
|
# Violations not covered by `flake8` above
|
||||||
# =======================================
|
# =======================================
|
||||||
|
# eradicate => no commented-out code
|
||||||
|
"ERA",
|
||||||
# isort => imports are sorted
|
# isort => imports are sorted
|
||||||
"I",
|
"I",
|
||||||
# flake8-print => no `print()`
|
# flake8-print => no `print()`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue