Commit ed3fbbb
Modernize packaging and tooling from the scverse template (#215)
Adopt the modern parts of the scverse cookiecutter while preserving gget's
mdbook docs, bundled binaries/data, and live-API test workflow.
Packaging:
- Consolidate setup.py + setup.cfg + requirements.txt + dev-requirements.txt
+ MANIFEST.in into a single pyproject.toml (hatchling backend, static
version 0.30.6). Bundled binaries (gget/bins) and data (gget/constants)
stay in the wheel; the `gget` console script is preserved.
- Require Python >= 3.12; classifiers and CI cover 3.12 / 3.13 / 3.14.
- Declare runtime deps in [project] and a [dependency-groups] `test` group;
keep cellxgene-census in a separate optional `cellxgene` group (no wheels
for newer Python yet) and have its test skip itself when the dep is absent.
Linting / formatting:
- Add the full scverse pre-commit config (biome, pyproject-fmt, ruff lint +
format, standard hygiene hooks) plus the scverse ruff config.
- Run ruff format + fixes across the tree; add docstrings, `raise ... from`,
isinstance checks, and targeted noqa to reach a green `prek run --all-files`.
- Vendored binaries, bundled data, test fixtures, and the CI report are
excluded from formatting; Markdown hard line breaks are preserved.
CI:
- Modernize ci.yml (uv, pull_request trigger, 3.12/3.13/3.14 matrix, codecov,
alls-green gate) while preserving the scheduled pytest-report commit-back.
- Add build.yml (package build check) and release.yml (PyPI trusted publishing).
Also fixes two latent bugs surfaced by ruff (undefined `Optional` in gget_cbio,
use-before-assignment of `seqs` in gget_muscle) and a duplicate tearDown in the
muscle tests.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent ea099b4 commit ed3fbbb
127 files changed
Lines changed: 6583 additions & 6724 deletions
File tree
- .github
- scripts
- workflows
- docs/src
- en
- es
- gget
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
23 | 31 | | |
24 | 32 | | |
25 | 33 | | |
| |||
80 | 88 | | |
81 | 89 | | |
82 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
83 | 98 | | |
84 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
85 | 105 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
91 | 114 | | |
92 | 115 | | |
93 | 116 | | |
94 | 117 | | |
95 | | - | |
| 118 | + | |
96 | 119 | | |
97 | 120 | | |
98 | 121 | | |
99 | 122 | | |
100 | 123 | | |
101 | | - | |
| 124 | + | |
102 | 125 | | |
103 | 126 | | |
104 | 127 | | |
105 | 128 | | |
106 | 129 | | |
107 | | - | |
| 130 | + | |
108 | 131 | | |
109 | 132 | | |
110 | 133 | | |
| |||
125 | 148 | | |
126 | 149 | | |
127 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
128 | 155 | | |
129 | 156 | | |
130 | 157 | | |
| |||
151 | 178 | | |
152 | 179 | | |
153 | 180 | | |
154 | | - | |
155 | | - | |
156 | | - | |
| 181 | + | |
157 | 182 | | |
158 | 183 | | |
159 | 184 | | |
| |||
231 | 256 | | |
232 | 257 | | |
233 | 258 | | |
| 259 | + | |
234 | 260 | | |
235 | 261 | | |
236 | 262 | | |
| |||
259 | 285 | | |
260 | 286 | | |
261 | 287 | | |
262 | | - | |
| 288 | + | |
263 | 289 | | |
264 | 290 | | |
265 | 291 | | |
| |||
270 | 296 | | |
271 | 297 | | |
272 | 298 | | |
273 | | - | |
| 299 | + | |
274 | 300 | | |
275 | 301 | | |
276 | 302 | | |
277 | 303 | | |
278 | 304 | | |
279 | 305 | | |
280 | 306 | | |
281 | | - | |
| 307 | + | |
282 | 308 | | |
283 | 309 | | |
284 | 310 | | |
| |||
292 | 318 | | |
293 | 319 | | |
294 | 320 | | |
295 | | - | |
296 | | - | |
297 | | - | |
| 321 | + | |
298 | 322 | | |
299 | 323 | | |
300 | 324 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments