Skip to content

Commit b4ef408

Browse files
committed
Bump mypy
1 parent 3e469ed commit b4ef408

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
lines changed

.github/workflows/flake8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
if: steps.changes.outputs.code == 'true'
3636
uses: "actions/setup-python@v5"
3737
with:
38-
python-version: "3.8"
38+
python-version: "3.9"
3939

4040
- name: Install dependencies 🔧
4141
if: steps.changes.outputs.code == 'true'

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
if: steps.changes.outputs.code == 'true'
4141
uses: "actions/setup-python@v5"
4242
with:
43-
python-version: "3.8"
43+
python-version: "3.9"
4444

4545
- name: Install dependencies (Linux) 🔧
4646
if: ${{ matrix.os == 'ubuntu-22.04' && steps.changes.outputs.code == 'true' }}

repo_helper.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ docs_fail_on_warning: true
1616
use_whey: true
1717
standalone_contrib_guide: true
1818
min_coverage: 90
19+
mypy_version: 1.16
20+
python_deploy_version: 3.9
1921

2022
conda_channels:
2123
- conda-forge

seed_intersphinx_mapping/extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def sphinx_seed_intersphinx_mapping(app: Sphinx, config: Config) -> None:
7878
from seed_intersphinx_mapping import seed_intersphinx_mapping
7979

8080
repo_root = os.path.abspath(pathlib.Path(app.srcdir) / config.repository_root)
81-
config.repository_root = repo_root # type: ignore
81+
config.repository_root = repo_root # type: ignore[attr-defined]
8282

8383
if isinstance(config.pkg_requirements_source, list):
8484
requirements = []

tests/test_seeding.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def test_sphinx_seed_intersphinx_mapping_mocked(
120120
config.pkg_requirements_source = pkg_requirements_source
121121
config.repository_root = '.'
122122

123-
sphinx_seed_intersphinx_mapping(app, config) # type: ignore
123+
sphinx_seed_intersphinx_mapping(app, config) # type: ignore[arg-type]
124124

125125
advanced_data_regression.check(config.intersphinx_mapping)
126126

@@ -154,6 +154,6 @@ def test_sphinx_seed_intersphinx_mapping_list_mocked(
154154
]
155155
config.repository_root = '.'
156156

157-
sphinx_seed_intersphinx_mapping(app, config) # type: ignore
157+
sphinx_seed_intersphinx_mapping(app, config) # type: ignore[arg-type]
158158

159159
advanced_data_regression.check(config.intersphinx_mapping)

tox.ini

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ test =
5656
pypy38
5757
pypy39
5858
qa = mypy, lint
59-
cov = py38, coverage
59+
cov = py39, coverage
6060

6161
[testenv]
6262
setenv =
@@ -113,7 +113,7 @@ commands =
113113
check-wheel-contents dist/
114114

115115
[testenv:lint]
116-
basepython = python3.8
116+
basepython = python3.9
117117
changedir = {toxinidir}
118118
ignore_errors = True
119119
skip_install = True
@@ -143,33 +143,33 @@ deps =
143143
commands = python3 -m flake8_rst_docstrings_sphinx seed_intersphinx_mapping tests --allow-toolbox {posargs}
144144

145145
[testenv:perflint]
146-
basepython = python3.8
146+
basepython = python3.9
147147
changedir = {toxinidir}
148148
ignore_errors = True
149149
skip_install = True
150150
deps = perflint
151151
commands = python3 -m perflint seed_intersphinx_mapping {posargs}
152152

153153
[testenv:mypy]
154-
basepython = python3.8
154+
basepython = python3.9
155155
ignore_errors = True
156156
changedir = {toxinidir}
157157
deps =
158-
mypy==0.971
158+
mypy==1.16
159159
-r{toxinidir}/tests/requirements.txt
160160
-r{toxinidir}/stubs.txt
161161
commands = mypy seed_intersphinx_mapping tests {posargs}
162162

163163
[testenv:pyup]
164-
basepython = python3.8
164+
basepython = python3.9
165165
skip_install = True
166166
ignore_errors = True
167167
changedir = {toxinidir}
168168
deps = pyupgrade-directories
169169
commands = pyup_dirs seed_intersphinx_mapping tests --py36-plus --recursive
170170

171171
[testenv:coverage]
172-
basepython = python3.8
172+
basepython = python3.9
173173
skip_install = True
174174
ignore_errors = True
175175
whitelist_externals = /bin/bash

0 commit comments

Comments
 (0)