Enable SIM in flake8 and ruff

This commit is contained in:
Alexander Hess 2026-11-30 20:57:31 +01:00
commit 007998372f
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -204,6 +204,7 @@ def lint_code(session: nox.Session) -> None:
"flake8-pytest-style",
"flake8-quotes",
"flake8-sfs",
"flake8-simplify",
"flake8-todos",
"flake8-unused-arguments",
"isort",
@ -641,9 +642,7 @@ def skip_install(session: nox.Session) -> bool:
# Same logic to skip package installation as in core `nox`
# See: https://github.com/wntrblm/nox/blob/2026.10.20/nox/sessions.py#L905
venv = session._runner.venv
if session._runner.global_config.no_install and venv._reused:
return True
return False
return bool(session._runner.global_config.no_install and venv._reused)
if MAIN_PYTHON not in SUPPORTED_PYTHONS: