Skip to content

Commit ef0e2fe

Browse files
committed
πŸ“¦πŸ“ƒ Test Read the Docs integration
1 parent 7d6891c commit ef0e2fe

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

β€Žctt.tomlβ€Ž

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[defaults]
22
_extra_tasks = [
3+
# NOTE: also update no_cli below
34
"git init", # required to run uv
45
"uv run just init",
56
"uv run just lint",
@@ -9,13 +10,11 @@ _extra_tasks = [
910
"uv sync --resolution highest",
1011
"just build-docs",
1112

12-
"uvx --with sp-repo-review[cli] repo-review . --ignore PY007,RTD100,PC191 --show errskip",
13-
# PY007 Supports an easy task runner (nox, tox, pixi, etc.)
13+
"uvx --with sp-repo-review[cli] repo-review . --ignore PY007,RTD,PC191 --show errskip",
14+
# PY007 : Supports an easy task runner (nox, tox, pixi, etc.) : we use just
1415
"[ -f justfile ]",
15-
# PC191 Ruff show fixes if fixes enabled
16-
# good check, but false-positive on ruff-isort
17-
### fix later:
18-
# RTD100 Uses ReadTheDocs (pyproject config)
16+
# PC191 : Ruff show fixes if fixes enabled : false-positive on ruff-isort
17+
# RTD : ReadTheDocs : checked in the no_cli section
1918

2019
"uv tree --outdated --depth 1 --color always -q | grep latest --color=never || true",
2120
]
@@ -32,12 +31,30 @@ get_package_version_from_vcs = false
3231
has_cli = true
3332
jupyter_files = "forbid"
3433
format_tool = "black"
34+
in_rtd = false
3535

3636
[output.".ctt/no_cli"]
3737
has_cli = false
3838
in_pypi = true
3939
in_rtd = true
4040
in_codecov = true
41+
_extra_tasks = [
42+
"git init", # required to run uv
43+
"uv run just init",
44+
"uv run just lint",
45+
"uv run just test",
46+
"uv run pre-commit run --all-files",
47+
"uv sync --resolution lowest-direct; uv run --no-sync pytest",
48+
"uv sync --resolution highest",
49+
"just build-docs",
50+
51+
"uvx --with sp-repo-review[cli] repo-review . --ignore PY007,PC191 --show errskip",
52+
# PY007 : Supports an easy task runner (nox, tox, pixi, etc.) : we use just
53+
"[ -f justfile ]",
54+
# PC191 : Ruff show fixes if fixes enabled : false-positive on ruff-isort
55+
56+
"uv tree --outdated --depth 1 --color always -q | grep latest --color=never || true",
57+
]
4158

4259
[output.".ctt/package_version_from_vcs"]
4360
get_package_version_from_vcs = true

0 commit comments

Comments
Β (0)