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 @@ -100,7 +100,7 @@ bson = [
100100]
101101
102102[tool .pytest .ini_options ]
103- addopts = " -l --mypy-only-local-stub --benchmark-sort=fullname --benchmark-warmup=true --benchmark-warmup-iterations=5 --benchmark-group-by=fullname "
103+ addopts = " -l"
104104
105105[tool .coverage .run ]
106106parallel = true
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ wheel_build_env = .pkg
4040commands_pre =
4141 pdm install -G :all,test,tests-mypy
4242 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}
4345
4446[testenv:pypy3]
4547setenv =
You can’t perform that action at this time.
0 commit comments