@@ -38,9 +38,6 @@ packages = ["irclib"]
3838[tool .hatch .build .hooks .vcs ]
3939version-file = " irclib/_version.py"
4040
41- [tool .hatch .env ]
42- requires = [" hatch-containers" ]
43-
4441[tool .hatch .envs .default ]
4542dependencies = [
4643 " coverage[toml]>=6.5" ,
@@ -51,27 +48,26 @@ dependencies = [
5148]
5249
5350[tool .hatch .envs .default .scripts ]
54- test = " pytest"
55- test-cov = [" coverage run -pm pytest" ]
56- cov-report = [
57- " - coverage combine" ,
58- " coverage xml" ,
59- " coverage report --show-missing" ,
60- ]
61- cov = [" - coverage erase" , " test-cov" , " cov-report" ]
62- cov-all = [" - coverage erase" , " hatch run testall:test-cov" , " cov-report" ]
63-
6451setup-pre-commit = " python3 -m pre_commit install --install-hooks -t commit-msg -t pre-push -t pre-commit"
6552setup-dev = [" setup-pre-commit" ]
6653
6754pre-commit = " python3 -m pre_commit run {args:--all}"
6855
69- [tool .hatch .envs .testall ]
70- type = " container"
71- dependencies = [" coverage[toml]>=6.5" , " pytest>=6.0" , " irc-parser-tests" ]
72-
73- [[tool .hatch .envs .testall .matrix ]]
74- python = [" 3.8" , " 3.9" , " 3.10" , " 3.11" , " 3.12" ]
56+ [tool .hatch .envs .hatch-test ]
57+ default-args = [" tests" , " polymatch" ]
58+ extra-args = [" -vv" ]
59+ [tool .hatch .envs .hatch-test .scripts ]
60+ run = " pytest{env:HATCH_TEST_ARGS:} {args}"
61+ run-cov = " coverage run -m pytest{env:HATCH_TEST_ARGS:} {args}"
62+ cov-combine = " coverage combine"
63+ cov-report = [" coverage report --show-missing --skip-covered" , " coverage xml" ]
64+ [[tool .hatch .envs .hatch-test .matrix ]]
65+ python = [" 3.13" , " 3.12" , " 3.11" , " 3.10" , " 3.9" ]
66+
67+ [tool .hatch .envs .types ]
68+ extra-dependencies = [" mypy>=1.0.0" ]
69+ [tool .hatch .envs .types .scripts ]
70+ check = " mypy --install-types --non-interactive {args:polymatch tests}"
7571
7672[tool .isort ]
7773profile = " black"
0 commit comments