Skip to content

Commit 9f57835

Browse files
committed
🔧 Reorganize test configuration in ctt.toml
Restructure test cases to focus on feature combinations rather than individual settings. Replace fragmented test outputs (no_cli, package_version_from_vcs, python3.10, jupyter_*) with logical groupings. New test structure: - bare: Minimal template configuration - docs: Documentation-focused with PyPI, RTD, and codecov - cli_vcs/cli_no_vcs: CLI variants with different versioning - python3.13: Latest Python version testing Combine those tests with the jupyter and format_tool permutations.
1 parent d57009a commit 9f57835

File tree

1 file changed

+22
-52
lines changed

1 file changed

+22
-52
lines changed

‎ctt.toml‎

Lines changed: 22 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ _extra_tasks = [
1515

1616
# check repo for following good practices
1717
"uvx --with sp-repo-review[cli] repo-review . --ignore PY007,RTD,PC191 --show errskip",
18-
# RTD : ReadTheDocs : checked in the no_cli section
18+
# RTD : ReadTheDocs : checked in the docs section
1919
# PY007 : Supports an easy task runner (nox, tox, pixi, etc.) : we use just
2020
"[ -f justfile ]",
2121
# PC191 : Ruff show fixes if fixes enabled : false-positive on ruff-isort
@@ -36,74 +36,44 @@ package_description = "A car that flies."
3636
license = "MIT"
3737
year = 2015
3838
get_package_version_from_vcs = false
39-
has_cli = true
39+
has_cli = false
40+
in_pypi = false
41+
in_rtd = false
42+
in_codecov = false
4043
jupyter_files = "forbid"
4144
format_tool = "black"
42-
in_rtd = false
4345

44-
[output.".ctt/no_cli"]
45-
has_cli = false
46+
[output.".ctt/bare"]
47+
jupyter_files = "forbid"
48+
49+
[output.".ctt/docs"]
4650
in_pypi = true
4751
in_rtd = true
4852
in_codecov = true
4953
_extra_tasks = [
50-
# NOTE: also update defaults above
51-
52-
# init
5354
"git init", # required to run uv
5455
"VIRTUAL_ENV='' uv run just init",
55-
56-
# check code with non-editing tasks
57-
"VIRTUAL_ENV='' uv run just lint",
58-
"VIRTUAL_ENV='' uv run dmypy stop",
59-
"VIRTUAL_ENV='' uv run just test",
60-
"VIRTUAL_ENV='' uv run just test-lowest 3.13",
6156
"VIRTUAL_ENV='' uv run just build-docs",
62-
63-
# check repo for following good practices
64-
"uvx --with sp-repo-review[cli] repo-review . --ignore PY007,PC191 --show errskip",
65-
# PY007 : Supports an easy task runner (nox, tox, pixi, etc.) : we use just
66-
"[ -f justfile ]",
67-
# PC191 : Ruff show fixes if fixes enabled : false-positive on ruff-isort
68-
69-
# check the editing tasks
70-
"VIRTUAL_ENV='' uv run just format",
71-
"VIRTUAL_ENV='' uv run just quick-tools",
72-
73-
# show outdated deps
74-
"VIRTUAL_ENV='' uv run just list-outdated-deps",
57+
"uvx --with sp-repo-review[cli] repo-review . --select RTD --show errskip",
7558
]
7659

77-
[output.".ctt/package_version_from_vcs"]
78-
get_package_version_from_vcs = true
79-
80-
[output.".ctt/python3.10"]
81-
python_min = 10
60+
[output.".ctt/cli_vcs"]
8261
get_package_version_from_vcs = true
8362
has_cli = true
63+
in_pypi = true
64+
in_rtd = true
65+
in_codecov = true
8466
jupyter_files = "strip_outputs"
85-
format_tool = "ruff"
86-
87-
[output.".ctt/jupyter_forbid"]
88-
jupyter_files = "forbid"
89-
format_tool = "black"
90-
91-
[output.".ctt/jupyter_forbid+ruff"]
92-
jupyter_files = "forbid"
93-
format_tool = "ruff"
9467

95-
[output.".ctt/jupyter_ignore"]
68+
[output.".ctt/cli_no_vcs"]
69+
get_package_version_from_vcs = false
70+
has_cli = true
71+
in_pypi = true
72+
in_rtd = true
73+
in_codecov = true
9674
jupyter_files = "ignore"
97-
format_tool = "black"
98-
99-
[output.".ctt/jupyter_strip_outputs"]
100-
jupyter_files = "strip_outputs"
101-
format_tool = "black"
102-
103-
[output.".ctt/jupyter_allow"]
104-
jupyter_files = "allow"
105-
format_tool = "black"
10675

107-
[output.".ctt/jupyter_allow+ruff"]
76+
[output.".ctt/python3.13"]
77+
python_min = 13
10878
jupyter_files = "allow"
10979
format_tool = "ruff"

0 commit comments

Comments
 (0)