invoke-tasklib 0.1.0a0__tar.gz → 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/PKG-INFO +47 -57
  2. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/README.md +46 -56
  3. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/env.py +9 -6
  4. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/release.py +1 -1
  5. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/typecheck.py +35 -2
  6. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/pyproject.toml +75 -6
  7. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_check.py +2 -1
  8. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_env_python.py +12 -1
  9. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_env_tools.py +4 -1
  10. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_project.py +1 -0
  11. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_read_only.py +1 -0
  12. invoke_tasklib-0.1.1/tests/integration/test_typecheck.py +70 -0
  13. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/config/test__validate.py +26 -1
  14. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/conftest.py +7 -0
  15. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test__graph.py +200 -0
  16. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_env.py +12 -6
  17. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_formatting.py +79 -0
  18. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_init.py +3 -1
  19. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_release.py +2 -2
  20. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_runner.py +36 -4
  21. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_typecheck.py +48 -0
  22. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/.gitignore +0 -0
  23. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/LICENSE +0 -0
  24. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/__init__.py +0 -0
  25. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/_coverage.py +0 -0
  26. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/_discover.py +0 -0
  27. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/_files.py +0 -0
  28. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/_graph.py +0 -0
  29. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/_pyproject.py +0 -0
  30. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/_steps.py +0 -0
  31. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/check.py +0 -0
  32. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/clean.py +0 -0
  33. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/config/__init__.py +0 -0
  34. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/config/__main__.py +0 -0
  35. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/config/_constants.py +0 -0
  36. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/config/_derive.py +0 -0
  37. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/config/_invoke.py +0 -0
  38. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/config/_resolve.py +0 -0
  39. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/config/_schema.py +0 -0
  40. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/config/_validate.py +0 -0
  41. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/doc.py +0 -0
  42. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/fix.py +0 -0
  43. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/formatting.py +0 -0
  44. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/imports.py +0 -0
  45. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/lint.py +0 -0
  46. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/output.py +0 -0
  47. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/py.typed +0 -0
  48. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/runner.py +0 -0
  49. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/security.py +0 -0
  50. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/show.py +0 -0
  51. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/testing.py +0 -0
  52. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/invoke_tasklib/tools.py +0 -0
  53. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/__init__.py +0 -0
  54. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/benchmarks/__init__.py +0 -0
  55. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/benchmarks/test_config_benchmark.py +0 -0
  56. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/benchmarks/test_files_benchmark.py +0 -0
  57. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/benchmarks/test_graph_benchmark.py +0 -0
  58. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/benchmarks/test_init_benchmark.py +0 -0
  59. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/benchmarks/test_runner_benchmark.py +0 -0
  60. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/helpers.py +0 -0
  61. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/__init__.py +0 -0
  62. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/helpers.py +0 -0
  63. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_clean.py +0 -0
  64. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_doc.py +0 -0
  65. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_docs.py +0 -0
  66. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_doctest.py +0 -0
  67. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_env_config.py +0 -0
  68. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_env_install.py +0 -0
  69. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_exit_codes.py +0 -0
  70. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_files.py +0 -0
  71. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_fix_converges.py +0 -0
  72. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_formatting.py +0 -0
  73. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_imports.py +0 -0
  74. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_output.py +0 -0
  75. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_quoting.py +0 -0
  76. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_readme.py +0 -0
  77. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_release.py +0 -0
  78. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_runner.py +0 -0
  79. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_security.py +0 -0
  80. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/integration/test_testing.py +0 -0
  81. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/__init__.py +0 -0
  82. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/config/__init__.py +0 -0
  83. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/config/conftest.py +0 -0
  84. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/config/test___main__.py +0 -0
  85. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/config/test__derive.py +0 -0
  86. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/config/test__invoke.py +0 -0
  87. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/config/test__resolve.py +0 -0
  88. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/config/test__schema.py +0 -0
  89. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test__coverage.py +0 -0
  90. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test__discover.py +0 -0
  91. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test__files.py +0 -0
  92. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test__pyproject.py +0 -0
  93. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test__steps.py +0 -0
  94. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_architecture.py +0 -0
  95. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_check.py +0 -0
  96. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_clean.py +0 -0
  97. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_doc.py +0 -0
  98. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_docstrings.py +0 -0
  99. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_fix.py +0 -0
  100. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_helpers.py +0 -0
  101. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_imports.py +0 -0
  102. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_lint.py +0 -0
  103. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_output.py +0 -0
  104. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_program_hints.py +0 -0
  105. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_security.py +0 -0
  106. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_show.py +0 -0
  107. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_testing.py +0 -0
  108. {invoke_tasklib-0.1.0a0 → invoke_tasklib-0.1.1}/tests/unit/test_tools.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: invoke-tasklib
3
- Version: 0.1.0a0
3
+ Version: 0.1.1
4
4
  Summary: Reusable Invoke tasks shared across Python projects.
5
5
  Project-URL: Homepage, https://github.com/durandtibo/invoke-tasklib
6
6
  Project-URL: Repository, https://github.com/durandtibo/invoke-tasklib
@@ -29,64 +29,53 @@ Description-Content-Type: text/markdown
29
29
  # invoke-tasklib
30
30
 
31
31
  <p align="center">
32
- <a href="https://github.com/durandtibo/invoke-tasklib/actions/workflows/ci.yaml">
33
- <img alt="CI" src="https://github.com/durandtibo/invoke-tasklib/actions/workflows/ci.yaml/badge.svg">
34
- </a>
35
- <a href="https://github.com/durandtibo/invoke-tasklib/actions/workflows/nightly-package.yaml">
36
- <img alt="Nightly Package Tests" src="https://github.com/durandtibo/invoke-tasklib/actions/workflows/nightly-package.yaml/badge.svg">
37
- </a>
38
- <a href="https://codecov.io/gh/durandtibo/invoke-tasklib">
39
- <img alt="Codecov" src="https://codecov.io/gh/durandtibo/invoke-tasklib/branch/main/graph/badge.svg">
40
- </a>
32
+ <a href="https://github.com/durandtibo/invoke-tasklib/actions/workflows/ci.yaml"><img
33
+ alt="CI"
34
+ src="https://img.shields.io/github/actions/workflow/status/durandtibo/invoke-tasklib/ci.yaml?branch=main&label=CI&logo=github"></a>
35
+ <a href="https://github.com/durandtibo/invoke-tasklib/actions/workflows/nightly-package.yaml"><img
36
+ alt="Nightly Package Tests"
37
+ src="https://img.shields.io/github/actions/workflow/status/durandtibo/invoke-tasklib/nightly-package.yaml?label=nightly&logo=github"></a>
38
+ <a href="https://codecov.io/gh/durandtibo/invoke-tasklib"><img
39
+ alt="Codecov"
40
+ src="https://img.shields.io/codecov/c/github/durandtibo/invoke-tasklib?logo=codecov"></a>
41
+ <a href="https://durandtibo.github.io/invoke-tasklib/"><img
42
+ alt="Documentation (stable)"
43
+ src="https://img.shields.io/badge/docs-stable-blue?logo=readthedocs&logoColor=white"></a>
41
44
  <br/>
42
- <a href="https://durandtibo.github.io/invoke-tasklib/">
43
- <img alt="Documentation" src="https://github.com/durandtibo/invoke-tasklib/actions/workflows/release-docs.yaml/badge.svg">
44
- </a>
45
- <a href="https://durandtibo.github.io/invoke-tasklib/dev/">
46
- <img alt="Documentation" src="https://github.com/durandtibo/invoke-tasklib/actions/workflows/release-docs-dev.yaml/badge.svg">
47
- </a>
45
+ <a href="https://pypi.org/project/invoke-tasklib/"><img
46
+ alt="PyPI version"
47
+ src="https://img.shields.io/pypi/v/invoke-tasklib?logo=pypi&logoColor=white"></a>
48
+ <a href="https://pypi.org/project/invoke-tasklib/"><img
49
+ alt="Python"
50
+ src="https://img.shields.io/pypi/pyversions/invoke-tasklib?logo=python&logoColor=white"></a>
51
+ <a href="https://opensource.org/licenses/BSD-3-Clause"><img
52
+ alt="BSD-3-Clause"
53
+ src="https://img.shields.io/pypi/l/invoke-tasklib"></a>
48
54
  <br/>
49
- <a href="https://google.github.io/styleguide/pyguide.html#s3.8-comments-and-docstrings">
50
- <img alt="Doc style: google" src="https://img.shields.io/badge/%20style-google-3666d6.svg">
51
- </a>
52
- <a href="https://github.com/astral-sh/ruff">
53
- <img alt="Ruff" src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json">
54
- </a>
55
- <a href="https://github.com/guilatrova/tryceratops">
56
- <img alt="try/except style: tryceratops" src="https://img.shields.io/badge/try%2Fexcept%20style-tryceratops%20%F0%9F%A6%96%E2%9C%A8-black">
57
- </a>
55
+ <a href="https://github.com/astral-sh/ruff"><img
56
+ alt="Ruff"
57
+ src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json"></a>
58
+ <a href="https://google.github.io/styleguide/pyguide.html#s3.8-comments-and-docstrings"><img
59
+ alt="Doc style: google"
60
+ src="https://img.shields.io/badge/docstyle-google-3666d6"></a>
61
+ <a href="https://scorecard.dev/viewer/?uri=github.com/durandtibo/invoke-tasklib"><img
62
+ alt="OpenSSF Scorecard"
63
+ src="https://img.shields.io/ossf-scorecard/github.com/durandtibo/invoke-tasklib?label=openssf%20scorecard"></a>
58
64
  <br/>
59
- <a href="https://pypi.org/project/invoke-tasklib/">
60
- <img alt="PYPI version" src="https://img.shields.io/pypi/v/invoke-tasklib">
61
- </a>
62
- <a href="https://pypi.org/project/invoke-tasklib/">
63
- <img alt="Python" src="https://img.shields.io/pypi/pyversions/invoke-tasklib.svg">
64
- </a>
65
- <a href="https://opensource.org/licenses/BSD-3-Clause">
66
- <img alt="BSD-3-Clause" src="https://img.shields.io/pypi/l/invoke-tasklib">
67
- </a>
68
- <br/>
69
- <a href="https://pepy.tech/project/invoke-tasklib">
70
- <img alt="Downloads" src="https://static.pepy.tech/badge/invoke-tasklib">
71
- </a>
72
- <a href="https://pepy.tech/project/invoke-tasklib">
73
- <img alt="Monthly downloads" src="https://static.pepy.tech/badge/invoke-tasklib/month">
74
- </a>
75
- <a href="https://github.com/durandtibo/invoke-tasklib/stargazers">
76
- <img alt="GitHub stars" src="https://img.shields.io/github/stars/durandtibo/invoke-tasklib">
77
- </a>
78
- <br/>
79
- <a href="https://www.bestpractices.dev/projects/14387">
80
- <img src="https://www.bestpractices.dev/projects/14387/badge">
81
- </a>
82
- <a href="https://scorecard.dev/viewer/?uri=github.com/durandtibo/invoke-tasklib">
83
- <img alt="OpenSSF Scorecard" src="https://img.shields.io/badge/dynamic/json?url=https://api.scorecard.dev/projects/github.com/durandtibo/invoke-tasklib&label=openssf%20scorecard&query=score">
84
- </a>
65
+ <a href="https://pepy.tech/project/invoke-tasklib"><img
66
+ alt="Downloads"
67
+ src="https://img.shields.io/pepy/dt/invoke-tasklib"></a>
68
+ <a href="https://pepy.tech/project/invoke-tasklib"><img
69
+ alt="Monthly downloads"
70
+ src="https://img.shields.io/pepy/dm/invoke-tasklib"></a>
71
+ <a href="https://github.com/durandtibo/invoke-tasklib/stargazers"><img
72
+ alt="GitHub stars"
73
+ src="https://img.shields.io/github/stars/durandtibo/invoke-tasklib?logo=github"></a>
85
74
  </p>
86
75
 
87
76
  Reusable [Invoke](https://www.pyinvoke.org/) tasks shared across Python
88
77
  projects: formatting, linting, type-checking, testing, environment setup,
89
- security auditing, releasing, documentation, and cleanup — all as a single
78
+ security auditing, releasing, documentation, and cleanup, all as a single
90
79
  importable package instead of a `tasks.py` you copy-paste and let drift
91
80
  between repositories.
92
81
 
@@ -149,7 +138,7 @@ for a full walkthrough.
149
138
 
150
139
  Tasks are grouped into namespaces, one per module. Each task either
151
140
  **checks/reports** (read-only, exits non-zero on violations) or
152
- **mutates** (formats, builds, publishes) — the table below flags which.
141
+ **mutates** (formats, builds, publishes); the table below flags which.
153
142
 
154
143
  | Namespace | Task | Behavior | Mutates? |
155
144
  | ---------- | ----------------------------- | ---------------------------------------------------------------------------------------- | :------: |
@@ -167,6 +156,7 @@ Tasks are grouped into namespaces, one per module. Each task either
167
156
  | `imports` | `imports.check-cycles` | Check for cyclic import dependencies | ❌ |
168
157
  | `imports` | `imports.check-isolated` | Check that every module imports on its own | ❌ |
169
158
  | `types` | `types.check` | Check type hints with ty (`--complete` also runs pyright) | ❌ |
159
+ | `types` | `types.check-public-api` | Check that the public API of the package is fully typed (pyright) | ❌ |
170
160
  | `test` | `test.doctest` | Run doctests on source code and markdown files | ❌ |
171
161
  | `test` | `test.doctest-src` | Run doctests on source code | ❌ |
172
162
  | `test` | `test.doctest-markdown` | Run doctests on Python examples in markdown files | ❌ |
@@ -207,7 +197,7 @@ tools each one wraps, see the
207
197
 
208
198
  ## Configuration
209
199
 
210
- Only `tasklib.package.name` is required — everything else has a sensible
200
+ Only `tasklib.package.name` is required; everything else has a sensible
211
201
  default derived from it:
212
202
 
213
203
  ```yaml
@@ -301,8 +291,8 @@ relative one (`from . import my_custom_task`), which fails with an `ImportError`
301
291
 
302
292
  or keep only some of them with `include`, e.g. `make_ns(include=["lint", "test.unit"])`. The names
303
293
  are namespaces (`"doc"`) or tasks (`"release.publish"`); an unknown name raises a `ValueError`. The
304
- `make_ns()` with no argument has all the tasks (the former pre-built `invoke_tasklib.ns`, one
305
- collection shared by every importer, was removed). Individual task modules can also be composed by
294
+ `make_ns()` with no argument has all the tasks (there is no pre-built `invoke_tasklib.ns`, so no
295
+ collection is shared between importers). Individual task modules can also be composed by
306
296
  hand:
307
297
 
308
298
  ```python
@@ -331,7 +321,7 @@ composition for things that are genuinely one-off to a single project.
331
321
  ## API Stability
332
322
 
333
323
  :warning: `invoke-tasklib` is under active development and its API is not
334
- yet stable — pin a specific version in your project's dependencies for
324
+ yet stable: pin a specific version in your project's dependencies for
335
325
  consistent behavior across releases.
336
326
 
337
327
  ## Contributing
@@ -1,64 +1,53 @@
1
1
  # invoke-tasklib
2
2
 
3
3
  <p align="center">
4
- <a href="https://github.com/durandtibo/invoke-tasklib/actions/workflows/ci.yaml">
5
- <img alt="CI" src="https://github.com/durandtibo/invoke-tasklib/actions/workflows/ci.yaml/badge.svg">
6
- </a>
7
- <a href="https://github.com/durandtibo/invoke-tasklib/actions/workflows/nightly-package.yaml">
8
- <img alt="Nightly Package Tests" src="https://github.com/durandtibo/invoke-tasklib/actions/workflows/nightly-package.yaml/badge.svg">
9
- </a>
10
- <a href="https://codecov.io/gh/durandtibo/invoke-tasklib">
11
- <img alt="Codecov" src="https://codecov.io/gh/durandtibo/invoke-tasklib/branch/main/graph/badge.svg">
12
- </a>
4
+ <a href="https://github.com/durandtibo/invoke-tasklib/actions/workflows/ci.yaml"><img
5
+ alt="CI"
6
+ src="https://img.shields.io/github/actions/workflow/status/durandtibo/invoke-tasklib/ci.yaml?branch=main&label=CI&logo=github"></a>
7
+ <a href="https://github.com/durandtibo/invoke-tasklib/actions/workflows/nightly-package.yaml"><img
8
+ alt="Nightly Package Tests"
9
+ src="https://img.shields.io/github/actions/workflow/status/durandtibo/invoke-tasklib/nightly-package.yaml?label=nightly&logo=github"></a>
10
+ <a href="https://codecov.io/gh/durandtibo/invoke-tasklib"><img
11
+ alt="Codecov"
12
+ src="https://img.shields.io/codecov/c/github/durandtibo/invoke-tasklib?logo=codecov"></a>
13
+ <a href="https://durandtibo.github.io/invoke-tasklib/"><img
14
+ alt="Documentation (stable)"
15
+ src="https://img.shields.io/badge/docs-stable-blue?logo=readthedocs&logoColor=white"></a>
13
16
  <br/>
14
- <a href="https://durandtibo.github.io/invoke-tasklib/">
15
- <img alt="Documentation" src="https://github.com/durandtibo/invoke-tasklib/actions/workflows/release-docs.yaml/badge.svg">
16
- </a>
17
- <a href="https://durandtibo.github.io/invoke-tasklib/dev/">
18
- <img alt="Documentation" src="https://github.com/durandtibo/invoke-tasklib/actions/workflows/release-docs-dev.yaml/badge.svg">
19
- </a>
17
+ <a href="https://pypi.org/project/invoke-tasklib/"><img
18
+ alt="PyPI version"
19
+ src="https://img.shields.io/pypi/v/invoke-tasklib?logo=pypi&logoColor=white"></a>
20
+ <a href="https://pypi.org/project/invoke-tasklib/"><img
21
+ alt="Python"
22
+ src="https://img.shields.io/pypi/pyversions/invoke-tasklib?logo=python&logoColor=white"></a>
23
+ <a href="https://opensource.org/licenses/BSD-3-Clause"><img
24
+ alt="BSD-3-Clause"
25
+ src="https://img.shields.io/pypi/l/invoke-tasklib"></a>
20
26
  <br/>
21
- <a href="https://google.github.io/styleguide/pyguide.html#s3.8-comments-and-docstrings">
22
- <img alt="Doc style: google" src="https://img.shields.io/badge/%20style-google-3666d6.svg">
23
- </a>
24
- <a href="https://github.com/astral-sh/ruff">
25
- <img alt="Ruff" src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json">
26
- </a>
27
- <a href="https://github.com/guilatrova/tryceratops">
28
- <img alt="try/except style: tryceratops" src="https://img.shields.io/badge/try%2Fexcept%20style-tryceratops%20%F0%9F%A6%96%E2%9C%A8-black">
29
- </a>
27
+ <a href="https://github.com/astral-sh/ruff"><img
28
+ alt="Ruff"
29
+ src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json"></a>
30
+ <a href="https://google.github.io/styleguide/pyguide.html#s3.8-comments-and-docstrings"><img
31
+ alt="Doc style: google"
32
+ src="https://img.shields.io/badge/docstyle-google-3666d6"></a>
33
+ <a href="https://scorecard.dev/viewer/?uri=github.com/durandtibo/invoke-tasklib"><img
34
+ alt="OpenSSF Scorecard"
35
+ src="https://img.shields.io/ossf-scorecard/github.com/durandtibo/invoke-tasklib?label=openssf%20scorecard"></a>
30
36
  <br/>
31
- <a href="https://pypi.org/project/invoke-tasklib/">
32
- <img alt="PYPI version" src="https://img.shields.io/pypi/v/invoke-tasklib">
33
- </a>
34
- <a href="https://pypi.org/project/invoke-tasklib/">
35
- <img alt="Python" src="https://img.shields.io/pypi/pyversions/invoke-tasklib.svg">
36
- </a>
37
- <a href="https://opensource.org/licenses/BSD-3-Clause">
38
- <img alt="BSD-3-Clause" src="https://img.shields.io/pypi/l/invoke-tasklib">
39
- </a>
40
- <br/>
41
- <a href="https://pepy.tech/project/invoke-tasklib">
42
- <img alt="Downloads" src="https://static.pepy.tech/badge/invoke-tasklib">
43
- </a>
44
- <a href="https://pepy.tech/project/invoke-tasklib">
45
- <img alt="Monthly downloads" src="https://static.pepy.tech/badge/invoke-tasklib/month">
46
- </a>
47
- <a href="https://github.com/durandtibo/invoke-tasklib/stargazers">
48
- <img alt="GitHub stars" src="https://img.shields.io/github/stars/durandtibo/invoke-tasklib">
49
- </a>
50
- <br/>
51
- <a href="https://www.bestpractices.dev/projects/14387">
52
- <img src="https://www.bestpractices.dev/projects/14387/badge">
53
- </a>
54
- <a href="https://scorecard.dev/viewer/?uri=github.com/durandtibo/invoke-tasklib">
55
- <img alt="OpenSSF Scorecard" src="https://img.shields.io/badge/dynamic/json?url=https://api.scorecard.dev/projects/github.com/durandtibo/invoke-tasklib&label=openssf%20scorecard&query=score">
56
- </a>
37
+ <a href="https://pepy.tech/project/invoke-tasklib"><img
38
+ alt="Downloads"
39
+ src="https://img.shields.io/pepy/dt/invoke-tasklib"></a>
40
+ <a href="https://pepy.tech/project/invoke-tasklib"><img
41
+ alt="Monthly downloads"
42
+ src="https://img.shields.io/pepy/dm/invoke-tasklib"></a>
43
+ <a href="https://github.com/durandtibo/invoke-tasklib/stargazers"><img
44
+ alt="GitHub stars"
45
+ src="https://img.shields.io/github/stars/durandtibo/invoke-tasklib?logo=github"></a>
57
46
  </p>
58
47
 
59
48
  Reusable [Invoke](https://www.pyinvoke.org/) tasks shared across Python
60
49
  projects: formatting, linting, type-checking, testing, environment setup,
61
- security auditing, releasing, documentation, and cleanup — all as a single
50
+ security auditing, releasing, documentation, and cleanup, all as a single
62
51
  importable package instead of a `tasks.py` you copy-paste and let drift
63
52
  between repositories.
64
53
 
@@ -121,7 +110,7 @@ for a full walkthrough.
121
110
 
122
111
  Tasks are grouped into namespaces, one per module. Each task either
123
112
  **checks/reports** (read-only, exits non-zero on violations) or
124
- **mutates** (formats, builds, publishes) — the table below flags which.
113
+ **mutates** (formats, builds, publishes); the table below flags which.
125
114
 
126
115
  | Namespace | Task | Behavior | Mutates? |
127
116
  | ---------- | ----------------------------- | ---------------------------------------------------------------------------------------- | :------: |
@@ -139,6 +128,7 @@ Tasks are grouped into namespaces, one per module. Each task either
139
128
  | `imports` | `imports.check-cycles` | Check for cyclic import dependencies | ❌ |
140
129
  | `imports` | `imports.check-isolated` | Check that every module imports on its own | ❌ |
141
130
  | `types` | `types.check` | Check type hints with ty (`--complete` also runs pyright) | ❌ |
131
+ | `types` | `types.check-public-api` | Check that the public API of the package is fully typed (pyright) | ❌ |
142
132
  | `test` | `test.doctest` | Run doctests on source code and markdown files | ❌ |
143
133
  | `test` | `test.doctest-src` | Run doctests on source code | ❌ |
144
134
  | `test` | `test.doctest-markdown` | Run doctests on Python examples in markdown files | ❌ |
@@ -179,7 +169,7 @@ tools each one wraps, see the
179
169
 
180
170
  ## Configuration
181
171
 
182
- Only `tasklib.package.name` is required — everything else has a sensible
172
+ Only `tasklib.package.name` is required; everything else has a sensible
183
173
  default derived from it:
184
174
 
185
175
  ```yaml
@@ -273,8 +263,8 @@ relative one (`from . import my_custom_task`), which fails with an `ImportError`
273
263
 
274
264
  or keep only some of them with `include`, e.g. `make_ns(include=["lint", "test.unit"])`. The names
275
265
  are namespaces (`"doc"`) or tasks (`"release.publish"`); an unknown name raises a `ValueError`. The
276
- `make_ns()` with no argument has all the tasks (the former pre-built `invoke_tasklib.ns`, one
277
- collection shared by every importer, was removed). Individual task modules can also be composed by
266
+ `make_ns()` with no argument has all the tasks (there is no pre-built `invoke_tasklib.ns`, so no
267
+ collection is shared between importers). Individual task modules can also be composed by
278
268
  hand:
279
269
 
280
270
  ```python
@@ -303,7 +293,7 @@ composition for things that are genuinely one-off to a single project.
303
293
  ## API Stability
304
294
 
305
295
  :warning: `invoke-tasklib` is under active development and its API is not
306
- yet stable — pin a specific version in your project's dependencies for
296
+ yet stable: pin a specific version in your project's dependencies for
307
297
  consistent behavior across releases.
308
298
 
309
299
  ## Contributing
@@ -225,14 +225,16 @@ def show_python_config(c: Context) -> None:
225
225
 
226
226
  It lists the Python versions that ``uv`` knows, the one it would
227
227
  use, and the ``python`` of the ``PATH``. Having no ``python`` on the
228
- ``PATH`` is not an error of the task.
228
+ ``PATH`` is not an error of the task, and neither is a Python
229
+ version that ``uv`` would use but that is not installed (for
230
+ example a pinned ``.python-version``).
229
231
 
230
232
  Args:
231
233
  c: The invoke context.
232
234
  """
233
235
  say(c, "🐍 Python configuration:")
234
236
  run(c, ["uv", "python", "list", "--only-installed"])
235
- run(c, ["uv", "python", "find"])
237
+ run(c, ["uv", "python", "find"], warn=True)
236
238
  say(c, which("python") or "python: not found")
237
239
 
238
240
 
@@ -243,9 +245,10 @@ def check_tools(c: Context) -> None:
243
245
  Every program (``ruff``, ``ty``, ``pyright``, ``uv``, ...) and every
244
246
  Python module (``pytest``, ``coverage`` and the pytest plugins) that
245
247
  the tasks run is looked up, and one line per tool says where it was
246
- found, or how to install it. All the tools are listed, so one run
247
- shows everything that is missing. The config of the project is not
248
- needed, so the task can be run before anything is set up.
248
+ found, or how to install it. The tools are sorted by name. All the
249
+ tools are listed, so one run shows everything that is missing. The
250
+ config of the project is not needed, so the task can be run before
251
+ anything is set up.
249
252
 
250
253
  Args:
251
254
  c: The invoke context.
@@ -254,7 +257,7 @@ def check_tools(c: Context) -> None:
254
257
  Exit: With the code 127 if a tool is missing.
255
258
  """
256
259
  say(c, "🧰 Checking the tools of the tasks...")
257
- lookups = sorted(TOOLS.values(), key=lambda tool: tool.kind != "program")
260
+ lookups = sorted(TOOLS.values(), key=lambda tool: tool.name)
258
261
  missing: list[str] = []
259
262
  for tool in lookups:
260
263
  module = tool.kind == "module"
@@ -37,7 +37,7 @@ if TYPE_CHECKING:
37
37
  NAMESPACE = "release"
38
38
  r"""The name of the namespace of the tasks of this module."""
39
39
 
40
- _TWINE_REQUIREMENT = "twine>=6.1,<7"
40
+ _TWINE_REQUIREMENT = "twine>=7,<8"
41
41
  r"""The version range of ``twine`` that ``release.build --check`` runs.
42
42
 
43
43
  ``uvx`` installs the latest release in this range, so a new major
@@ -1,4 +1,8 @@
1
- r"""Type-checking task (``types.check``).
1
+ r"""Type-checking tasks (``types.*``).
2
+
3
+ The ``types.check`` task checks the type hints of the project. The
4
+ ``types.check-public-api`` task checks that the public API of the
5
+ package is fully typed.
2
6
 
3
7
  The module is named ``typecheck`` so that it does not shadow the
4
8
  standard library module ``types``; its namespace is ``types``, see
@@ -13,7 +17,7 @@ from invoke.tasks import task
13
17
 
14
18
  from invoke_tasklib.config import load_config
15
19
  from invoke_tasklib.output import say, step
16
- from invoke_tasklib.runner import PATHS_HELP, build_command, run
20
+ from invoke_tasklib.runner import ARGS_HELP, PATHS_HELP, build_command, run
17
21
 
18
22
  if TYPE_CHECKING:
19
23
  from invoke.context import Context
@@ -74,3 +78,32 @@ def check(
74
78
  ["pyright"], args=pyright_args, paths=paths, args_option="--pyright-args"
75
79
  ),
76
80
  )
81
+
82
+
83
+ @task(help={"args": ARGS_HELP})
84
+ def check_public_api(c: Context, *, args: str | None = None) -> None:
85
+ r"""Check that the public API of the package is fully typed.
86
+
87
+ It runs ``pyright --verifytypes <package> --ignoreexternal`` on
88
+ ``tasklib.package.import_name``, which fails if the type
89
+ completeness score is below 100 %. The symbols of the other
90
+ packages are ignored.
91
+
92
+ pyright reads the package of the first ``python`` of the ``PATH``,
93
+ which is the one of the environment that runs Invoke, so no
94
+ activation is needed. The package must be installed in that
95
+ environment (editable or not) and have a ``py.typed`` file.
96
+
97
+ Args:
98
+ c: The invoke context.
99
+ args: Extra arguments for pyright, e.g. ``"--verbose"``.
100
+
101
+ Raises:
102
+ Exit: If ``args`` cannot be split or ``pyright`` is not found.
103
+ UnexpectedExit: If pyright fails: the public API is not fully
104
+ typed, or the package or its ``py.typed`` file is not found.
105
+ """
106
+ name = load_config(c).package.import_name
107
+ with step(c, "🔬 Checking the types of the public API...", "✅ Public API check passed"):
108
+ words = ["pyright", "--verifytypes", name, "--ignoreexternal"]
109
+ run(c, build_command(words, args=args))
@@ -1,5 +1,5 @@
1
1
  [build-system]
2
- requires = ["hatchling >= 1.32"]
2
+ requires = ["hatchling>=1.33"]
3
3
  build-backend = "hatchling.build"
4
4
 
5
5
  [tool.hatch.build]
@@ -10,7 +10,7 @@ only-include = ["src", "tests"]
10
10
 
11
11
  [project]
12
12
  name = "invoke-tasklib"
13
- version = "0.1.0a0"
13
+ version = "0.1.1"
14
14
  description = "Reusable Invoke tasks shared across Python projects."
15
15
  readme = "README.md"
16
16
  authors = [{ name = "Thibaut Durand", email = "durand.tibo+gh@gmail.com" }]
@@ -38,20 +38,22 @@ dependencies = ["invoke>=3.0,<4.0"]
38
38
  [dependency-groups]
39
39
  dev = [
40
40
  "codespell>=2.4,<3.0",
41
- "coverage[toml]>=7.17.0,<8.0",
41
+ "coverage[toml]>=7.17.2,<8.0",
42
42
  "docformatter>=1.7.8,<2.0",
43
43
  "feu[all]>=0.8.4,<1.0",
44
+ # grimp (import-linter) does not build on free-threaded Python 3.13.
45
+ "import-linter>=2.0,<3.0; python_version >= '3.14'",
44
46
  "invoke>=3.0,<4.0",
45
47
  "pip-audit>=2.10,<3.0",
46
48
  "pre-commit>=4.6,<5.0",
47
49
  "pygments>=2.20,<3.0",
48
- "pytest-benchmark>=5.0,<6.0",
50
+ "pytest-benchmark>=5.1,<6.0",
49
51
  "pytest-cov>=7.1,<8.0",
50
52
  "pytest-timeout>=2.4,<3.0",
51
53
  "pytest>=9.1,<10.0",
52
54
  "pyright>=1.1.414,<2.0",
53
55
  "ruff>=0.16,<1.0",
54
- "ty>=0.0.96,<1.0",
56
+ "ty>=0.0.100,<1.0",
55
57
  "xdoctest>=1.3,<2.0",
56
58
  ]
57
59
  docs = [
@@ -70,7 +72,7 @@ Issues = "https://github.com/durandtibo/invoke-tasklib/issues"
70
72
  [tool.codespell]
71
73
  skip = "*.lock,./.git,./htmlcov,./docs/site,coverage.xml"
72
74
  ignore-regex = "re-declared|\\btha\\.\\.\\."
73
- ignore-words-list = "caf"
75
+ ignore-words-list = "caf,intoto"
74
76
 
75
77
  [tool.coverage.paths]
76
78
  source = ["src", "*/site-packages"]
@@ -92,6 +94,7 @@ exclude_lines = [
92
94
  minversion = "9.0"
93
95
  pythonpath = ["src"]
94
96
  testpaths = ["tests/"]
97
+ log_format = "%(asctime)s - %(levelname)s - %(name)s - %(message)s"
95
98
  addopts = [
96
99
  "--color",
97
100
  "yes",
@@ -276,9 +279,75 @@ known-first-party = ["invoke_tasklib"]
276
279
  [tool.pyright]
277
280
  include = ["src"]
278
281
  pythonVersion = "3.11"
282
+ venvPath = "."
283
+ venv = ".venv"
279
284
 
280
285
  [tool.ty.src]
281
286
  include = ["src", "tests", "dev"]
282
287
 
283
288
  [tool.ty.environment]
284
289
  python-version = "3.11"
290
+
291
+ [tool.importlinter]
292
+ root_package = "invoke_tasklib"
293
+ include_external_packages = false
294
+
295
+ [[tool.importlinter.contracts]]
296
+ name = "Support modules must not import the task modules"
297
+ type = "forbidden"
298
+ source_modules = [
299
+ "invoke_tasklib.config",
300
+ "invoke_tasklib.runner",
301
+ "invoke_tasklib.tools",
302
+ "invoke_tasklib.output",
303
+ "invoke_tasklib._steps",
304
+ "invoke_tasklib._files",
305
+ "invoke_tasklib._pyproject",
306
+ "invoke_tasklib._coverage",
307
+ "invoke_tasklib._graph",
308
+ "invoke_tasklib._discover",
309
+ ]
310
+ forbidden_modules = [
311
+ "invoke_tasklib.formatting",
312
+ "invoke_tasklib.lint",
313
+ "invoke_tasklib.typecheck",
314
+ "invoke_tasklib.testing",
315
+ "invoke_tasklib.env",
316
+ "invoke_tasklib.release",
317
+ "invoke_tasklib.doc",
318
+ "invoke_tasklib.security",
319
+ "invoke_tasklib.imports",
320
+ "invoke_tasklib.clean",
321
+ "invoke_tasklib.check",
322
+ "invoke_tasklib.fix",
323
+ "invoke_tasklib.show",
324
+ ]
325
+
326
+ [[tool.importlinter.contracts]]
327
+ name = "Config must not import the other modules"
328
+ type = "forbidden"
329
+ source_modules = ["invoke_tasklib.config"]
330
+ forbidden_modules = [
331
+ "invoke_tasklib.runner",
332
+ "invoke_tasklib.tools",
333
+ "invoke_tasklib.output",
334
+ "invoke_tasklib._steps",
335
+ "invoke_tasklib._files",
336
+ "invoke_tasklib._pyproject",
337
+ "invoke_tasklib._coverage",
338
+ "invoke_tasklib._graph",
339
+ "invoke_tasklib._discover",
340
+ "invoke_tasklib.formatting",
341
+ "invoke_tasklib.lint",
342
+ "invoke_tasklib.typecheck",
343
+ "invoke_tasklib.testing",
344
+ "invoke_tasklib.env",
345
+ "invoke_tasklib.release",
346
+ "invoke_tasklib.doc",
347
+ "invoke_tasklib.security",
348
+ "invoke_tasklib.imports",
349
+ "invoke_tasklib.clean",
350
+ "invoke_tasklib.check",
351
+ "invoke_tasklib.fix",
352
+ "invoke_tasklib.show",
353
+ ]
@@ -1,5 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
+ import re
3
4
  import sys
4
5
  from typing import TYPE_CHECKING
5
6
 
@@ -46,7 +47,7 @@ def test_all_keep_going_prints_the_hint_of_a_missing_tool(
46
47
  monkeypatch.setenv("PATH", "/usr/bin:/bin")
47
48
  with pytest.raises(Exit, match=r"1 of 1 check\(s\) failed: shell"):
48
49
  check.all_(_context("badpkg"), only="shell", keep_going=True)
49
- assert "'shellcheck' was not found on the PATH" in capsys.readouterr().err
50
+ assert re.search(r"'(shellcheck|shfmt)' was not found", capsys.readouterr().err)
50
51
 
51
52
 
52
53
  def test_all_stops_before_running_when_a_tool_is_missing(monkeypatch: pytest.MonkeyPatch) -> None:
@@ -2,6 +2,7 @@ from __future__ import annotations
2
2
 
3
3
  import os
4
4
  import shutil
5
+ import sys
5
6
  from typing import TYPE_CHECKING
6
7
 
7
8
  import pytest
@@ -24,8 +25,18 @@ def test_show_python_config_prints_the_python_of_the_path(
24
25
  tmp_path: Path, monkeypatch: pytest.MonkeyPatch, capsys: pytest.CaptureFixture[str]
25
26
  ) -> None:
26
27
  fake = tmp_path / "python"
27
- fake.write_text("#!/bin/sh\n")
28
+ # uv runs the python of the PATH to query it, so it must work
29
+ fake.write_text(f'#!/bin/sh\nexec "{sys.executable}" "$@"\n')
28
30
  fake.chmod(0o755)
29
31
  monkeypatch.setenv("PATH", f"{tmp_path}{os.pathsep}{os.environ['PATH']}")
30
32
  env.show_python_config(subprocess_context())
31
33
  assert capsys.readouterr().out.splitlines()[-1] == str(fake)
34
+
35
+
36
+ def test_show_python_config_accepts_a_pinned_version_that_is_not_installed(
37
+ tmp_path: Path, monkeypatch: pytest.MonkeyPatch, capsys: pytest.CaptureFixture[str]
38
+ ) -> None:
39
+ (tmp_path / ".python-version").write_text("2.6\n")
40
+ monkeypatch.chdir(tmp_path)
41
+ env.show_python_config(subprocess_context())
42
+ assert "Python configuration" in capsys.readouterr().out
@@ -59,7 +59,10 @@ def test_check_tools_exits_with_code_127_when_a_tool_is_missing(tmp_path: Path)
59
59
 
60
60
 
61
61
  def test_check_tools_names_the_missing_tools_in_the_error(tmp_path: Path) -> None:
62
- assert "tool(s) missing: uv, uvx, git, ruff" in _check_tools(tmp_path, "/nonexistent").stderr
62
+ assert (
63
+ "tool(s) missing: codespell, docformatter, git"
64
+ in _check_tools(tmp_path, "/nonexistent").stderr
65
+ )
63
66
 
64
67
 
65
68
  def test_check_tools_finds_the_python_modules_of_the_interpreter(tmp_path: Path) -> None:
@@ -70,6 +70,7 @@ def test_list_succeeds(project: Path) -> None:
70
70
  "security.audit",
71
71
  "test.unit",
72
72
  "types.check",
73
+ "types.check-public-api",
73
74
  ],
74
75
  )
75
76
  def test_list_contains_the_task(project: Path, task: str) -> None:
@@ -62,6 +62,7 @@ def project(tmp_path: Path) -> Path:
62
62
  "format.check-python",
63
63
  "lint.check-python",
64
64
  "types.check",
65
+ "types.check-public-api",
65
66
  "test.unit",
66
67
  "test.doctest",
67
68
  "imports.check-cycles",