File tree Expand file tree Collapse file tree 3 files changed +38
-2
lines changed Expand file tree Collapse file tree 3 files changed +38
-2
lines changed Original file line number Diff line number Diff line change 35
35
- run : pip install nox
36
36
- run : nox -s docs
37
37
38
+ typecheck :
39
+ name : typecheck
40
+ runs-on : ubuntu-latest
41
+
42
+ steps :
43
+ - uses : actions/checkout@v4
44
+ - uses : actions/setup-python@v5
45
+ with :
46
+ python-version : " 3.x"
47
+ - run : pip install nox
48
+ - run : nox -s typecheck
49
+
38
50
determine-changes :
39
51
runs-on : ubuntu-22.04
40
52
outputs :
@@ -252,6 +264,7 @@ jobs:
252
264
253
265
needs :
254
266
- determine-changes
267
+ - typecheck
255
268
- docs
256
269
- packaging
257
270
- tests-unix
Original file line number Diff line number Diff line change @@ -28,14 +28,14 @@ repos:
28
28
args : [--fix]
29
29
30
30
- repo : https://github.com/pre-commit/mirrors-mypy
31
- rev : v1.16.1
31
+ rev : v1.10.0
32
32
hooks :
33
33
- id : mypy
34
34
exclude : tests/data
35
35
args : ["--pretty", "--show-error-codes"]
36
36
additional_dependencies : [
37
37
' keyring==24.2.0' ,
38
- ' nox==2024.03.02 ' ,
38
+ ' nox==2023.4.22 ' ,
39
39
' pytest' ,
40
40
' types-docutils==0.20.0.3' ,
41
41
' types-setuptools==68.2.0.0' ,
Original file line number Diff line number Diff line change @@ -174,6 +174,29 @@ def docs_live(session: nox.Session) -> None:
174
174
)
175
175
176
176
177
+ @nox .session
178
+ def typecheck (session : nox .Session ) -> None :
179
+ session .install (
180
+ "mypy" ,
181
+ "keyring" ,
182
+ "nox" ,
183
+ "pytest" ,
184
+ "types-docutils" ,
185
+ "types-setuptools" ,
186
+ "types-freezegun" ,
187
+ "types-pyyaml" ,
188
+ )
189
+
190
+ session .run (
191
+ "mypy" ,
192
+ "src/pip" ,
193
+ "tests" ,
194
+ "tools" ,
195
+ "noxfile.py" ,
196
+ "--exclude=tests/data" ,
197
+ )
198
+
199
+
177
200
@nox .session
178
201
def lint (session : nox .Session ) -> None :
179
202
session .install ("pre-commit" )
You can’t perform that action at this time.
0 commit comments