File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ lint: ## check style with ruff and black
5454test : # # run tests quickly with the default Python
5555 pdm run pytest -x --ff -n auto tests
5656
57-
5857test-all : # # run tests on every Python version with tox
5958 tox
6059
@@ -78,7 +77,7 @@ servedocs: docs ## compile the docs watching for changes
7877 watchmedo shell-command -p ' *.rst' -c ' $(MAKE) -C docs html' -R -D .
7978
8079bench-cmp :
81- pytest bench --benchmark-compare
80+ pytest --benchmark-sort=fullname --benchmark-warmup=true --benchmark-warmup-iterations=5 --benchmark-group-by=fullname bench --benchmark-compare
8281
8382bench :
84- pytest bench --benchmark-save base
83+ pytest --benchmark-sort=fullname --benchmark-warmup=true --benchmark-warmup-iterations=5 --benchmark-group-by=fullname bench --benchmark-save base
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ msgspec = [
103103]
104104
105105[tool .pytest .ini_options ]
106- addopts = " -l --mypy-only-local-stub --benchmark-sort=fullname --benchmark-warmup=true --benchmark-warmup-iterations=5 --benchmark-group-by=fullname "
106+ addopts = " -l"
107107
108108[tool .coverage .run ]
109109parallel = true
Original file line number Diff line number Diff line change @@ -37,6 +37,13 @@ package = wheel
3737wheel_build_env = .pkg
3838
3939[testenv:py312]
40+ commands_pre =
41+ pdm sync -G :all,test,tests-mypy
42+ python -c ' import pathlib; pathlib.Path("{env_site_packages_dir}/cov.pth").write_text("import coverage; coverage.process_startup()")'
43+ commands =
44+ coverage run -m pytest tests {posargs:-n auto --mypy-only-local-stub}
45+
46+ [testenv:pypy3]
4047setenv =
4148 PDM_IGNORE_SAVED_PYTHON =" 1"
4249 COVERAGE_PROCESS_START ={toxinidir}/pyproject.toml
You can’t perform that action at this time.
0 commit comments