Skip to content

Commit e9e4181

Browse files
Update instance repo from cookiecutter template
1 parent 52c99fd commit e9e4181

4 files changed

Lines changed: 27 additions & 39 deletions

File tree

.cruft.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"template": "/home/runner/work/cookiecutter-scverse/cookiecutter-scverse",
3-
"commit": "8642a1825348e6236ec62151c55dd90c7197ae08",
3+
"commit": "cbf6b45007d28c0cf4faf528f99f46b53565a92f",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
77
"project_name": "cookiecutter-scverse-instance",
88
"package_name": "cookiecutter_scverse_instance",
9-
"project_description": "An example repo generated from the `cookiecutter-scverse` template. Feel free to look around this repo and check out the docs to find out if the template works for you!",
9+
"project_description": "An example repo generated from the `cookiecutter-scverse` template.",
1010
"author_full_name": "scverse community",
1111
"author_email": "core-team@scverse.org",
1212
"github_user": "scverse",
@@ -36,7 +36,7 @@
3636
"trim_blocks": true
3737
},
3838
"_template": "/home/runner/work/cookiecutter-scverse/cookiecutter-scverse",
39-
"_commit": "8642a1825348e6236ec62151c55dd90c7197ae08"
39+
"_commit": "cbf6b45007d28c0cf4faf528f99f46b53565a92f"
4040
}
4141
},
4242
"directory": null

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ default_stages:
77
minimum_pre_commit_version: 2.16.0
88
repos:
99
- repo: https://github.com/biomejs/pre-commit
10-
rev: v2.3.10
10+
rev: v2.3.14
1111
hooks:
1212
- id: biome-format
1313
exclude: ^\.cruft\.json$ # inconsistent indentation with cruft - file never to be modified manually.
1414
- repo: https://github.com/tox-dev/pyproject-fmt
15-
rev: v2.12.1
15+
rev: v2.15.1
1616
hooks:
1717
- id: pyproject-fmt
1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.14.14
19+
rev: v0.15.0
2020
hooks:
2121
- id: ruff-check
2222
types_or: [python, pyi, jupyter]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[badge-tests]: https://img.shields.io/github/actions/workflow/status/scverse/cookiecutter-scverse-instance/test.yaml?branch=main
77
[badge-docs]: https://img.shields.io/readthedocs/cookiecutter-scverse-instance
88

9-
An example repo generated from the `cookiecutter-scverse` template. Feel free to look around this repo and check out the docs to find out if the template works for you!
9+
An example repo generated from the `cookiecutter-scverse` template.
1010

1111
## Getting started
1212

pyproject.toml

Lines changed: 20 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ requires = [ "hatchling" ]
55
[project]
66
name = "cookiecutter-scverse-instance"
77
version = "0.0.1"
8-
description = "An example repo generated from the `cookiecutter-scverse` template. Feel free to look around this repo and check out the docs to find out if the template works for you!"
8+
description = "An example repo generated from the `cookiecutter-scverse` template."
99
readme = "README.md"
1010
license = { file = "LICENSE" }
1111
maintainers = [
@@ -57,43 +57,31 @@ doc = [
5757
"sphinxext-opengraph",
5858
]
5959

60-
[tool.hatch.envs.default]
61-
installer = "uv"
62-
dependency-groups = [ "dev" ]
63-
64-
[tool.hatch.envs.docs]
65-
dependency-groups = [ "doc" ]
66-
scripts.build = "sphinx-build -M html docs docs/_build -W {args}"
67-
scripts.open = "python -m webbrowser -t docs/_build/html/index.html"
68-
scripts.clean = "git clean -fdX -- {args:docs}"
69-
70-
[tool.hatch.envs.hatch-test]
71-
dependency-groups = [ "dev", "test" ]
72-
73-
# Test the lowest and highest supported Python versions with normal deps
74-
[[tool.hatch.envs.hatch-test.matrix]]
75-
deps = [ "stable" ]
76-
python = [ "3.11", "3.14" ]
77-
78-
# Test the newest supported Python version also with pre-release deps
79-
[[tool.hatch.envs.hatch-test.matrix]]
80-
deps = [ "pre" ]
81-
python = [ "3.14" ]
82-
83-
[tool.hatch.envs.hatch-test.overrides]
60+
[tool.hatch]
61+
envs.default.installer = "uv"
62+
envs.default.dependency-groups = [ "dev" ]
63+
envs.docs.dependency-groups = [ "doc" ]
64+
envs.docs.scripts.build = "sphinx-build -M html docs docs/_build -W {args}"
65+
envs.docs.scripts.open = "python -m webbrowser -t docs/_build/html/index.html"
66+
envs.docs.scripts.clean = "git clean -fdX -- {args:docs}"
67+
envs.hatch-test.dependency-groups = [ "dev", "test" ]
68+
envs.hatch-test.matrix = [
69+
# Test the lowest and highest supported Python versions with normal deps
70+
{ deps = [ "stable" ], python = [ "3.11", "3.14" ] },
71+
# Test the newest supported Python version also with pre-release deps
72+
{ deps = [ "pre" ], python = [ "3.14" ] },
73+
]
8474
# If the matrix variable `deps` is set to "pre",
8575
# set the environment variable `UV_PRERELEASE` to "allow".
86-
matrix.deps.env-vars = [
76+
envs.hatch-test.overrides.matrix.deps.env-vars = [
8777
{ key = "UV_PRERELEASE", value = "allow", if = [ "pre" ] },
8878
]
8979

9080
[tool.ruff]
9181
line-length = 120
9282
src = [ "src" ]
9383
extend-include = [ "*.ipynb" ]
94-
9584
format.docstring-code-format = true
96-
9785
lint.select = [
9886
"B", # flake8-bugbear
9987
"BLE", # flake8-blind-except
@@ -134,12 +122,12 @@ addopts = [
134122
"--import-mode=importlib", # allow using test files with same name
135123
]
136124

137-
[tool.coverage.run]
138-
source = [ "cookiecutter_scverse_instance" ]
139-
patch = [ "subprocess" ]
140-
omit = [
125+
[tool.coverage]
126+
run.omit = [
141127
"**/test_*.py",
142128
]
129+
run.patch = [ "subprocess" ]
130+
run.source = [ "cookiecutter_scverse_instance" ]
143131

144132
[tool.cruft]
145133
skip = [

0 commit comments

Comments
 (0)