|
1 | 1 | python := ""
|
| 2 | +covcleanup := "true" |
2 | 3 |
|
3 | 4 | lint:
|
4 | 5 | uv run -p python3.13 --group lint ruff check src/ tests bench
|
|
7 | 8 | test *args="-x --ff -n auto tests":
|
8 | 9 | uv run {{ if python != '' { '-p ' + python } else { '' } }} --all-extras --group test pytest {{args}}
|
9 | 10 |
|
| 11 | +testall: |
| 12 | + just python=python3.9 test |
| 13 | + just python=python3.10 test |
| 14 | + just python=python3.11 test |
| 15 | + just python=python3.12 test |
| 16 | + just python=python3.13 test |
| 17 | + just python=pypy3.9 test |
| 18 | + |
10 | 19 | cov *args="-x --ff -n auto tests":
|
11 |
| - @uv run {{ if python != '' { '-p ' + python } else { '' } }} python -c 'import pathlib, site; pathlib.Path(f"{site.getsitepackages()[0]}/cov.pth").write_text("import coverage; coverage.process_startup()")' |
12 |
| - COVERAGE_PROCESS_START={{justfile_directory()}}/pyproject.toml uv run {{ if python != '' { '-p ' + python } else { '' } }} --all-extras --group test coverage run -m pytest {{args}} |
| 20 | + uv run {{ if python != '' { '-p ' + python } else { '' } }} --all-extras --group test coverage run -m pytest {{args}} |
| 21 | + {{ if covcleanup == "true" { "uv run coverage combine" } else { "" } }} |
| 22 | + {{ if covcleanup == "true" { "uv run coverage report" } else { "" } }} |
| 23 | + {{ if covcleanup == "true" { "@rm .coverage*" } else { "" } }} |
| 24 | + |
| 25 | +covall: |
| 26 | + just python=python3.9 covcleanup=false cov |
| 27 | + just python=python3.10 covcleanup=false cov |
| 28 | + just python=python3.11 covcleanup=false cov |
| 29 | + just python=python3.12 covcleanup=false cov |
| 30 | + just python=python3.13 covcleanup=false cov |
| 31 | + just python=pypy3.10 covcleanup=false cov |
| 32 | + uv run coverage combine |
| 33 | + uv run coverage report |
| 34 | + @rm .coverage* |
13 | 35 |
|
14 | 36 | bench-cmp:
|
15 | 37 | uv run pytest bench --benchmark-compare
|
|
0 commit comments