-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtox.ini
More file actions
57 lines (51 loc) · 1.44 KB
/
Copy pathtox.ini
File metadata and controls
57 lines (51 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[tox]
envlist = py312,py313,lint,format,audit,docs
isolated_build = true
minversion = 3.24.0
[testenv]
# Base test environment with optimizations
extras = dev
setenv =
COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
PYTHONPATH = {toxinidir}/src
deps =
pytest
pytest-asyncio
pytest-xdist[psutil] # For parallel test execution
pytest-cov
commands =
# Run tests in parallel with optimized coverage collection
pytest {posargs:-n auto --maxfail=3 --tb=short --strict-markers --strict-config --cov=src --cov-report=term-missing:skip-covered --cov-report=xml --cov-fail-under=84}
[testenv:lint]
# Fast linting using pyproject.toml configuration
skip_install = true
deps =
black>=26.1.0
ruff>=0.15.4
commands =
# Use pyproject.toml configuration (no need for verbose excludes)
black . --check --diff
ruff check . --show-fixes
[testenv:format]
# Code formatting using pyproject.toml configuration
skip_install = true
deps =
black>=26.1.0
ruff>=0.15.4
commands =
# Use pyproject.toml configuration
black .
ruff check . --fix
[testenv:audit]
# Dependency vulnerability scanning against runtime + dev deps
extras = dev
deps =
pip-audit
commands =
# Scan installed project dependencies without spinner noise
pip-audit --progress-spinner=off
[testenv:docs]
# Sphinx API documentation build with warnings-as-errors
extras = docs
commands =
python -m sphinx -b html docs/api docs/api/_build -W