Skip to content

Commit 8394447

Browse files
committed
Fix RTD build
debug
1 parent 2021042 commit 8394447

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ jobs:
177177
run: uvx nox --sessions mypy_pkg
178178

179179
docs:
180-
name: Build docs & run doctests
180+
name: Run doctests
181181
runs-on: ubuntu-latest
182182
needs: build-package
183183
steps:
@@ -190,11 +190,11 @@ jobs:
190190
- uses: actions/setup-python@v5
191191
with:
192192
# Keep in sync with .readthedocs.yaml
193-
python-version: "3.12"
193+
python-version: "3.13"
194194
- uses: hynek/setup-cached-uv@v2
195195

196196
- name: Prepare & run Nox
197-
run: uvx nox --session docs
197+
run: uvx nox --session docs -- doctest
198198

199199
install-dev:
200200
name: Verify dev env

.readthedocs.yaml

+11-10
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@ version: 2
44
build:
55
os: ubuntu-lts-latest
66
tools:
7-
# Keep version in sync with ci.yml/docs.
8-
python: "3.12"
7+
# Keep version in sync with tox.ini/docs and ci.yml/docs.
8+
python: "3.13"
99
jobs:
10-
# Need the tags to calculate the version
11-
post_checkout:
10+
create_environment:
11+
# Need the tags to calculate the version (sometimes).
1212
- git fetch --tags
1313

14-
python:
15-
install:
16-
- method: pip
17-
path: .
18-
extra_requirements:
19-
- docs
14+
- asdf plugin add uv
15+
- asdf install uv latest
16+
- asdf global uv latest
17+
18+
build:
19+
html:
20+
- uvx nox -e docs -- html

noxfile.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ def docs(session: nox.Session) -> None:
132132
session.install(".[docs]")
133133
cmds = session.posargs or ["html", "doctest"]
134134

135+
dest = os.environ.get("READTHEDOCS_OUTPUT", "docs/_build/")
136+
135137
for cmd in cmds:
136138
session.run(
137139
"python", "-Im", "sphinx",
@@ -142,5 +144,5 @@ def docs(session: nox.Session) -> None:
142144
"-D", "language=en",
143145
"-n",
144146
"docs",
145-
"docs/_build/html",
147+
pathlib.Path(dest, "html")
146148
) # fmt: skip

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ line-length = 79
169169
select = ["ALL"]
170170
ignore = [
171171
"A001", # shadowing is fine
172+
"A005", # shadowing typing is fine
172173
"ANN", # Mypy is better at this
173174
"ARG001", # unused arguments are normal when implementing interfaces
174175
"COM", # Formatter takes care of our commas

0 commit comments

Comments
 (0)