File tree Expand file tree Collapse file tree 3 files changed +15
-17
lines changed Expand file tree Collapse file tree 3 files changed +15
-17
lines changed Original file line number Diff line number Diff line change @@ -172,8 +172,6 @@ def no_underscores(symbols: Iterable[str]) -> set[str]:
172
172
elif tool == "mypy" :
173
173
if not RUN_SLOW : # pragma: no cover
174
174
pytest .skip ("use --run-slow to check against mypy" )
175
- if sys .implementation .name != "cpython" :
176
- pytest .skip ("mypy not installed in tests on pypy" )
177
175
178
176
cache = Path .cwd () / ".mypy_cache"
179
177
@@ -266,10 +264,10 @@ def no_hidden(symbols: Iterable[str]) -> set[str]:
266
264
if (not symbol .startswith ("_" )) or symbol .startswith ("__" )
267
265
}
268
266
269
- if tool == "mypy" :
270
- if sys .implementation .name != "cpython" :
271
- pytest .skip ("mypy not installed in tests on pypy" )
267
+ if tool == "jedi" and sys .implementation .name != "cpython" :
268
+ pytest .skip ("jedi does not support pypy" )
272
269
270
+ if tool == "mypy" :
273
271
cache = Path .cwd () / ".mypy_cache"
274
272
275
273
_ensure_mypy_cache_updated ()
Original file line number Diff line number Diff line change @@ -6,22 +6,22 @@ pyright
6
6
pyOpenSSL >= 22.0.0 # for the ssl + DTLS tests
7
7
trustme # for the ssl + DTLS tests
8
8
pylint # for pylint finding all symbols tests
9
- jedi # for jedi code completion tests
9
+ jedi; implementation_name == "cpython" # for jedi code completion tests
10
10
cryptography>=41.0.0 # cryptography<41 segfaults on pypy3.10
11
11
12
12
# Tools
13
13
black; implementation_name == "cpython"
14
- mypy; implementation_name == "cpython"
15
- types-pyOpenSSL; implementation_name == "cpython" # and annotations
14
+ mypy
16
15
ruff >= 0.4.3
17
16
astor # code generation
18
17
uv >= 0.2.24
19
18
codespell
20
19
21
20
# https://github.com/python-trio/trio/pull/654#issuecomment-420518745
22
- mypy-extensions; implementation_name == "cpython"
21
+ mypy-extensions
23
22
typing-extensions
24
- types-cffi; implementation_name == "cpython"
23
+ types-cffi
24
+ types-pyOpenSSL
25
25
# annotations in doc files
26
26
types-docutils
27
27
sphinx
Original file line number Diff line number Diff line change @@ -63,17 +63,17 @@ iniconfig==2.0.0
63
63
# via pytest
64
64
isort==5.13.2
65
65
# via pylint
66
- jedi==0.19.1
66
+ jedi==0.19.1 ; implementation_name == 'cpython'
67
67
# via -r test-requirements.in
68
68
jinja2==3.1.4
69
69
# via sphinx
70
70
markupsafe==2.1.5
71
71
# via jinja2
72
72
mccabe==0.7.0
73
73
# via pylint
74
- mypy==1.11.1 ; implementation_name == 'cpython'
74
+ mypy==1.11.1
75
75
# via -r test-requirements.in
76
- mypy-extensions==1.0.0 ; implementation_name == 'cpython'
76
+ mypy-extensions==1.0.0
77
77
# via
78
78
# -r test-requirements.in
79
79
# black
@@ -87,7 +87,7 @@ packaging==24.1
87
87
# black
88
88
# pytest
89
89
# sphinx
90
- parso==0.8.4
90
+ parso==0.8.4 ; implementation_name == 'cpython'
91
91
# via jedi
92
92
pathspec==0.12.1 ; implementation_name == 'cpython'
93
93
# via black
@@ -145,15 +145,15 @@ tomlkit==0.13.2
145
145
# via pylint
146
146
trustme==1.1.0
147
147
# via -r test-requirements.in
148
- types-cffi==1.16.0.20240331 ; implementation_name == 'cpython'
148
+ types-cffi==1.16.0.20240331
149
149
# via
150
150
# -r test-requirements.in
151
151
# types-pyopenssl
152
152
types-docutils==0.21.0.20240724
153
153
# via -r test-requirements.in
154
- types-pyopenssl==24.1.0.20240722 ; implementation_name == 'cpython'
154
+ types-pyopenssl==24.1.0.20240722
155
155
# via -r test-requirements.in
156
- types-setuptools==71.1.0.20240818 ; implementation_name == 'cpython'
156
+ types-setuptools==71.1.0.20240818
157
157
# via types-cffi
158
158
typing-extensions==4.12.2
159
159
# via
You can’t perform that action at this time.
0 commit comments