File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,16 @@ python = "3.11"
2929type = " virtual"
3030
3131[tool .hatch .envs .default .scripts ]
32+ cov = [
33+ " test-cov" ,
34+ " cov-report"
35+ ]
36+ cov-report = [
37+ " - coverage combine" ,
38+ " coverage report -m"
39+ ]
3240test = " pytest {args:tests}"
41+ test-cov = " coverage run -m pytest {args:tests}"
3342
3443[tool .hatch .envs .docs ]
3544dependencies = [
@@ -45,6 +54,46 @@ build = ["mkdocs build --clean --strict"]
4554deploy = [" mkdocs gh-deploy {args:}" ]
4655serve = [" mkdocs serve --dev-addr localhost:8080 --livereload" ]
4756
57+ [tool .hatch .envs .gen ]
58+ dependencies = [
59+ " pip-tools~=7.1.0"
60+ ]
61+ detached = false
62+
63+ [tool .hatch .envs .gen .scripts ]
64+ release = [
65+ " npm install --prefix .github/semantic_release/" ,
66+ " npx --prefix .github/semantic_release/ semantic-release {args:}"
67+ ]
68+ reqs = " pip-compile {args:} --generate-hashes --output-file requirements.txt"
69+ reqs-update = " pip-compile {args:} --upgrade --generate-hashes --output-file requirements.txt"
70+
71+ [tool .hatch .envs .lint ]
72+ dependencies = [
73+ " mypy>=1.0.0" ,
74+ " ruff>=0.0.243"
75+ ]
76+ detached = true
77+
78+ [tool .hatch .envs .lint .scripts ]
79+ all = [
80+ " style" ,
81+ " typing"
82+ ]
83+ fmt = [
84+ " ruff format {args:.}" ,
85+ " ruff --fix {args:.}" ,
86+ " style"
87+ ]
88+ precommit = [
89+ " pre-commit run --all-files"
90+ ]
91+ style = [
92+ " ruff {args:.}" ,
93+ " ruff format --check --diff {args:.}"
94+ ]
95+ typing = " mypy --install-types --non-interactive {args:example_project tests}"
96+
4897[tool .ruff ]
4998ignore = [
5099 # Allow non-abstract empty methods in abstract base classes
You can’t perform that action at this time.
0 commit comments