File tree Expand file tree Collapse file tree 7 files changed +17
-15
lines changed Expand file tree Collapse file tree 7 files changed +17
-15
lines changed Original file line number Diff line number Diff line change 35
35
if : steps.changes.outputs.code == 'true'
36
36
uses : " actions/setup-python@v5"
37
37
with :
38
- python-version : " 3.8 "
38
+ python-version : " 3.9 "
39
39
40
40
- name : Install dependencies 🔧
41
41
if : steps.changes.outputs.code == 'true'
Original file line number Diff line number Diff line change 40
40
if : steps.changes.outputs.code == 'true'
41
41
uses : " actions/setup-python@v5"
42
42
with :
43
- python-version : " 3.8 "
43
+ python-version : " 3.9 "
44
44
45
45
- name : Install dependencies 🔧
46
46
run : |
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ autodoc_exclude_members = [
124
124
]
125
125
126
126
[tool .mypy ]
127
- python_version = " 3.8 "
127
+ python_version = " 3.9 "
128
128
namespace_packages = true
129
129
check_untyped_defs = true
130
130
warn_unused_ignores = true
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ use_whey: true
15
15
sphinx_html_theme : furo
16
16
preserve_custom_theme : true
17
17
min_coverage : 95
18
+ mypy_version : 1.16
19
+ python_deploy_version : 3.9
18
20
19
21
# Versions to run tests for
20
22
python_versions :
Original file line number Diff line number Diff line change 52
52
53
53
try : # pragma: no cover
54
54
# 3rd party
55
- from _pytest .fixtures import FixtureFunctionDefinition # type: ignore[attr-defined]
55
+ from _pytest .fixtures import FixtureFunctionDefinition
56
56
except ImportError : # pragma: no cover
57
57
58
58
class FixtureFunctionDefinition : # type: ignore[no-redef]
@@ -169,7 +169,7 @@ def can_document_member(
169
169
"""
170
170
171
171
if isinstance (member , (FunctionType , FixtureFunctionDefinition )):
172
- return is_fixture (member )[0 ]
172
+ return is_fixture (member )[0 ] # type: ignore[arg-type]
173
173
else : # pragma: no cover
174
174
return False
175
175
Original file line number Diff line number Diff line change 17
17
path = pathlib .Path
18
18
else :
19
19
# 3rd party
20
- from sphinx .testing .path import path # type: ignore[misc ]
20
+ from sphinx .testing .path import path # type: ignore[assignment ]
21
21
22
22
pytest_plugins = "sphinx.testing.fixtures"
23
23
@@ -117,9 +117,9 @@ def test_output(
117
117
def _get_alabaster_version () -> Tuple [int , int , int ]:
118
118
try :
119
119
# 3rd party
120
- import alabaster ._version as alabaster # type: ignore[import]
120
+ import alabaster ._version as alabaster # type: ignore[import-untyped ]
121
121
except ImportError :
122
122
# 3rd party
123
- import alabaster # type: ignore[import]
123
+ import alabaster # type: ignore[import-untyped ]
124
124
125
125
return tuple (map (int , alabaster .__version__ .split ('.' )))
Original file line number Diff line number Diff line change 75
75
pypy38-pytest{7.4,8.3}
76
76
pypy39-pytest{7.4,8.3,latest}
77
77
qa = mypy, lint
78
- cov = py38 -sphinx3.2, coverage
78
+ cov = py39 -sphinx3.2, coverage
79
79
80
80
[testenv:.package]
81
81
setenv =
@@ -109,7 +109,7 @@ commands =
109
109
check-wheel-contents dist/
110
110
111
111
[testenv:lint]
112
- basepython = python3.8
112
+ basepython = python3.9
113
113
changedir = {toxinidir}
114
114
ignore_errors = True
115
115
skip_install = True
@@ -139,33 +139,33 @@ deps =
139
139
commands = python3 -m flake8_rst_docstrings_sphinx sphinx_autofixture tests --allow-toolbox {posargs}
140
140
141
141
[testenv:perflint]
142
- basepython = python3.8
142
+ basepython = python3.9
143
143
changedir = {toxinidir}
144
144
ignore_errors = True
145
145
skip_install = True
146
146
deps = perflint
147
147
commands = python3 -m perflint sphinx_autofixture {posargs}
148
148
149
149
[testenv:mypy]
150
- basepython = python3.8
150
+ basepython = python3.9
151
151
ignore_errors = True
152
152
changedir = {toxinidir}
153
153
deps =
154
- mypy ==0.971
154
+ mypy ==1.16
155
155
-r{toxinidir}/tests/requirements.txt
156
156
-r{toxinidir}/stubs.txt
157
157
commands = mypy sphinx_autofixture tests {posargs}
158
158
159
159
[testenv:pyup]
160
- basepython = python3.8
160
+ basepython = python3.9
161
161
skip_install = True
162
162
ignore_errors = True
163
163
changedir = {toxinidir}
164
164
deps = pyupgrade-directories
165
165
commands = pyup_dirs sphinx_autofixture tests --py36-plus --recursive
166
166
167
167
[testenv:coverage]
168
- basepython = python3.8
168
+ basepython = python3.9
169
169
skip_install = True
170
170
ignore_errors = True
171
171
whitelist_externals = /bin/bash
You can’t perform that action at this time.
0 commit comments