Enable SIM in flake8 and ruff
This commit is contained in:
parent
5dce8e6645
commit
007998372f
1 changed files with 33 additions and 36 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue