4343DOCS : str = "docs"
4444BUILD : str = "build"
4545RELEASE : str = "release"
46- CI : str = "ci "
46+ QUALITY : str = "quality "
4747PYTHON : str = "python"
4848RUST : str = "rust"
4949
@@ -60,7 +60,7 @@ def setup_venv(session: Session) -> None:
6060 session .run ("python" , SCRIPTS_FOLDER / "setup-venv.py" , REPO_ROOT , "-p" , PYTHON_VERSIONS [0 ], external = True )
6161
6262
63- @nox .session (python = DEFAULT_PYTHON_VERSION , name = "pre-commit" , tags = [CI ])
63+ @nox .session (python = DEFAULT_PYTHON_VERSION , name = "pre-commit" , tags = [QUALITY ])
6464def precommit (session : Session ) -> None :
6565 """Lint using pre-commit."""
6666 args : list [str ] = session .posargs or ["run" , "--all-files" , "--show-diff-on-failure" ]
@@ -73,7 +73,7 @@ def precommit(session: Session) -> None:
7373 activate_virtualenv_in_precommit_hooks (session )
7474
7575
76- @nox .session (python = False , name = "format-python" , tags = [FORMAT , PYTHON ])
76+ @nox .session (python = False , name = "format-python" , tags = [FORMAT , PYTHON , QUALITY ])
7777def format_python (session : Session ) -> None :
7878 """Run Python code formatter (Ruff format)."""
7979 session .log (f"Running Ruff formatter check with py{ session .python } ." )
@@ -91,7 +91,7 @@ def format_rust(session: Session) -> None:
9191
9292
9393{% endif - % }
94- @nox .session (python = False , name = "lint-python" , tags = [LINT , PYTHON ])
94+ @nox .session (python = False , name = "lint-python" , tags = [LINT , PYTHON , QUALITY ])
9595def lint_python (session : Session ) -> None :
9696 """Run Python code linters (Ruff check, Pydocstyle rules)."""
9797 session .log (f"Running Ruff check with py{ session .python } ." )
@@ -109,7 +109,7 @@ def lint_rust(session: Session) -> None:
109109
110110
111111{% endif - % }
112- @nox .session (python = PYTHON_VERSIONS , name = "typecheck" , tags = [TYPE , PYTHON , CI ])
112+ @nox .session (python = PYTHON_VERSIONS , name = "typecheck" , tags = [TYPE , PYTHON ])
113113def typecheck (session : Session ) -> None :
114114 """Run static type checking (Pyright) on Python code."""
115115 session .log ("Installing type checking dependencies..." )
@@ -119,7 +119,7 @@ def typecheck(session: Session) -> None:
119119 session .run ("pyright" , "--pythonversion" , session .python )
120120
121121
122- @nox .session (python = False , name = "security-python" , tags = [SECURITY , PYTHON , CI ])
122+ @nox .session (python = False , name = "security-python" , tags = [SECURITY , PYTHON ])
123123def security_python (session : Session ) -> None :
124124 """Run code security checks (Bandit) on Python code."""
125125 session .log (f"Running Bandit static security analysis with py{ session .python } ." )
@@ -130,7 +130,7 @@ def security_python(session: Session) -> None:
130130
131131
132132{% if cookiecutter .add_rust_extension == 'y' - % }
133- @nox .session (python = False , name = "security-rust" , tags = [SECURITY , RUST , CI ])
133+ @nox .session (python = False , name = "security-rust" , tags = [SECURITY , RUST ])
134134def security_rust (session : Session ) -> None :
135135 """Run code security checks (cargo audit)."""
136136 session .log ("Installing security dependencies..." )
@@ -139,7 +139,7 @@ def security_rust(session: Session) -> None:
139139
140140
141141{% endif - % }
142- @nox .session (python = PYTHON_VERSIONS , name = "tests-python" , tags = [TEST , PYTHON , CI ])
142+ @nox .session (python = PYTHON_VERSIONS , name = "tests-python" , tags = [TEST , PYTHON ])
143143def tests_python (session : Session ) -> None :
144144 """Run the Python test suite (pytest with coverage)."""
145145 session .log ("Installing test dependencies..." )
0 commit comments