File tree 4 files changed +18
-14
lines changed
4 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ jobs:
177
177
run : uvx nox --sessions mypy_pkg
178
178
179
179
docs :
180
- name : Build docs & run doctests
180
+ name : Run doctests
181
181
runs-on : ubuntu-latest
182
182
needs : build-package
183
183
steps :
@@ -190,11 +190,11 @@ jobs:
190
190
- uses : actions/setup-python@v5
191
191
with :
192
192
# Keep in sync with .readthedocs.yaml
193
- python-version : " 3.12 "
193
+ python-version : " 3.13 "
194
194
- uses : hynek/setup-cached-uv@v2
195
195
196
196
- name : Prepare & run Nox
197
- run : uvx nox --session docs
197
+ run : uvx nox --session docs -- doctest
198
198
199
199
install-dev :
200
200
name : Verify dev env
Original file line number Diff line number Diff line change @@ -4,16 +4,17 @@ version: 2
4
4
build :
5
5
os : ubuntu-lts-latest
6
6
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 "
9
9
jobs :
10
- # Need the tags to calculate the version
11
- post_checkout :
10
+ create_environment :
11
+ # Need the tags to calculate the version (sometimes).
12
12
- git fetch --tags
13
13
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
Original file line number Diff line number Diff line change @@ -132,6 +132,8 @@ def docs(session: nox.Session) -> None:
132
132
session .install (".[docs]" )
133
133
cmds = session .posargs or ["html" , "doctest" ]
134
134
135
+ dest = os .environ .get ("READTHEDOCS_OUTPUT" , "docs/_build/" )
136
+
135
137
for cmd in cmds :
136
138
session .run (
137
139
"python" , "-Im" , "sphinx" ,
@@ -142,5 +144,5 @@ def docs(session: nox.Session) -> None:
142
144
"-D" , "language=en" ,
143
145
"-n" ,
144
146
"docs" ,
145
- "docs/_build/ html",
147
+ pathlib . Path ( dest , " html")
146
148
) # fmt: skip
Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ line-length = 79
169
169
select = [" ALL" ]
170
170
ignore = [
171
171
" A001" , # shadowing is fine
172
+ " A005" , # shadowing typing is fine
172
173
" ANN" , # Mypy is better at this
173
174
" ARG001" , # unused arguments are normal when implementing interfaces
174
175
" COM" , # Formatter takes care of our commas
You can’t perform that action at this time.
0 commit comments