Remove coverage from documentation output
Marco Ricci

Marco Ricci commited on 2024-07-14 12:05:48
Zeige 2 geänderte Dateien mit 1 Einfügungen und 8 Löschungen.


It doesn't integrate well into the documentation site, *and* the actual
coverage numbers are flaky on Python 3.10 and PyPy 3.10.
... ...
@@ -87,7 +87,6 @@ nav:
87 87
     - Module derivepassphrase: reference/derivepassphrase.md
88 88
     - Module sequin: reference/sequin.md
89 89
     - Module ssh_agent_client: reference/ssh_agent_client.md
90
-    - Coverage: reference/coverage/index.html
91 90
   #- Design & Background: explanation.md
92 91
 
93 92
 markdown_extensions:
... ...
@@ -63,12 +63,6 @@ default-args = ['src', 'tests']
63 63
 [[tool.hatch.envs.hatch-test.matrix]]
64 64
 python = ["3.10", "3.11", "3.12", "pypy3.10"]
65 65
 
66
-[tool.hatch.envs.hatch-test.scripts]
67
-run = "pytest{env:HATCH_TEST_ARGS:} {args}"
68
-run-cov = "coverage run -m pytest{env:HATCH_TEST_ARGS:} {args}"
69
-cov-combine = "coverage combine"
70
-cov-report = ["coverage report", "coverage html"]
71
-
72 66
 [tool.hatch.env]
73 67
 requires = [
74 68
   "hatch-mkdocs",
... ...
@@ -93,7 +87,7 @@ extra-dependencies = [
93 87
 check = "mypy --install-types --non-interactive {args:src/derivepassphrase tests}"
94 88
 
95 89
 [tool.coverage.html]
96
-directory = "docs/reference/coverage"
90
+directory = "html/coverage"
97 91
 
98 92
 [tool.coverage.run]
99 93
 source_pkgs = ["derivepassphrase", "sequin", "ssh_agent_client", "tests"]
100 94