3939TEST : str = "test"
4040COVERAGE : str = "coverage"
4141SECURITY : str = "security"
42- PERF : str = "perf"
4342DOCS : str = "docs"
4443BUILD : str = "build"
4544RELEASE : str = "release"
4645QUALITY : str = "quality"
47- PYTHON : str = "python"
48- RUST : str = "rust"
4946
5047
5148@nox .session (python = False , name = "setup-git" , tags = [ENV ])
@@ -88,21 +85,21 @@ def precommit(session: Session) -> None:
8885 activate_virtualenv_in_precommit_hooks (session )
8986
9087
91- @nox .session (python = False , name = "format-python" , tags = [FORMAT , PYTHON , QUALITY ])
88+ @nox .session (python = False , name = "format-python" , tags = [FORMAT , QUALITY ])
9289def format_python (session : Session ) -> None :
9390 """Run Python code formatter (Ruff format)."""
9491 session .log (f"Running Ruff formatter check with py{ session .python } ." )
9592 session .run ("uvx" , "ruff" , "format" , * session .posargs )
9693
9794
98- @nox .session (python = False , name = "lint-python" , tags = [LINT , PYTHON , QUALITY ])
95+ @nox .session (python = False , name = "lint-python" , tags = [LINT , QUALITY ])
9996def lint_python (session : Session ) -> None :
10097 """Run Python code linters (Ruff check, Pydocstyle rules)."""
10198 session .log (f"Running Ruff check with py{ session .python } ." )
10299 session .run ("uvx" , "ruff" , "check" , "--fix" , "--verbose" )
103100
104101
105- @nox .session (python = PYTHON_VERSIONS , name = "typecheck" , tags = [ TYPE , PYTHON ] )
102+ @nox .session (python = PYTHON_VERSIONS , name = "typecheck" )
106103def typecheck (session : Session ) -> None :
107104 """Run static type checking (Pyright) on Python code."""
108105 session .log ("Installing type checking dependencies..." )
@@ -112,7 +109,7 @@ def typecheck(session: Session) -> None:
112109 session .run ("pyright" , "--pythonversion" , session .python )
113110
114111
115- @nox .session (python = False , name = "security-python" , tags = [SECURITY , PYTHON ])
112+ @nox .session (python = False , name = "security-python" , tags = [SECURITY ])
116113def security_python (session : Session ) -> None :
117114 """Run code security checks (Bandit) on Python code."""
118115 session .log (f"Running Bandit static security analysis with py{ session .python } ." )
@@ -122,7 +119,7 @@ def security_python(session: Session) -> None:
122119 session .run ("uvx" , "pip-audit" )
123120
124121
125- @nox .session (python = PYTHON_VERSIONS , name = "tests-python" , tags = [TEST , PYTHON ])
122+ @nox .session (python = PYTHON_VERSIONS , name = "tests-python" , tags = [TEST ])
126123def tests_python (session : Session ) -> None :
127124 """Run the Python test suite (pytest with coverage)."""
128125 session .log ("Installing test dependencies..." )
@@ -160,7 +157,7 @@ def docs_build(session: Session) -> None:
160157 session .run ("sphinx-build" , "-b" , "html" , "docs" , str (docs_build_dir ), "-W" )
161158
162159
163- @nox .session (python = False , name = "build-python" , tags = [BUILD , PYTHON ])
160+ @nox .session (python = False , name = "build-python" , tags = [BUILD ])
164161def build_python (session : Session ) -> None :
165162 """Build sdist and wheel packages (uv build)."""
166163 session .log (f"Building sdist and wheel packages with py{ session .python } ." )
0 commit comments