Skip to content

Commit 44c2204

Browse files
committed
Bump mypy
1 parent 88ab3ea commit 44c2204

File tree

7 files changed

+14
-12
lines changed

7 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 🔧
4646
run: |

formate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def yapf_hook(source: str, formate_global_config: Optional[Mapping] = None, **kw
186186
"""
187187

188188
# 3rd party
189-
from yapf.yapflib.yapf_api import FormatCode # type: ignore[import]
189+
from yapf.yapflib.yapf_api import FormatCode # type: ignore[import-untyped]
190190

191191
if "yapf_style" in kwargs:
192192
# yapf_style may be a filename or the name of a style

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ autodoc_exclude_members = [
144144
]
145145

146146
[tool.mypy]
147-
python_version = "3.8"
147+
python_version = "3.9"
148148
namespace_packages = true
149149
check_untyped_defs = true
150150
warn_unused_ignores = true

repo_helper.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ min_coverage: 95
1717
sphinx_html_theme: furo
1818
preserve_custom_theme: true
1919
docs_fail_on_warning: true
20+
mypy_version: 1.16
21+
python_deploy_version: 3.9
2022

2123
conda_channels:
2224
- conda-forge

tests/test_entry_points.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 3rd party
2-
import entrypoints # type: ignore[import]
2+
import entrypoints # type: ignore[import-untyped]
33
from coincidence import AdvancedDataRegressionFixture
44

55
# These tests will fail if not installed and just running straight from source

tox.ini

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

6161
[testenv]
6262
setenv =
@@ -117,7 +117,7 @@ commands =
117117
check-wheel-contents dist/
118118

119119
[testenv:lint]
120-
basepython = python3.8
120+
basepython = python3.9
121121
changedir = {toxinidir}
122122
ignore_errors = True
123123
skip_install = True
@@ -147,33 +147,33 @@ deps =
147147
commands = python3 -m flake8_rst_docstrings_sphinx formate tests --allow-toolbox {posargs}
148148

149149
[testenv:perflint]
150-
basepython = python3.8
150+
basepython = python3.9
151151
changedir = {toxinidir}
152152
ignore_errors = True
153153
skip_install = True
154154
deps = perflint
155155
commands = python3 -m perflint formate {posargs}
156156

157157
[testenv:mypy]
158-
basepython = python3.8
158+
basepython = python3.9
159159
ignore_errors = True
160160
changedir = {toxinidir}
161161
deps =
162-
mypy==0.971
162+
mypy==1.16
163163
-r{toxinidir}/tests/requirements.txt
164164
types-attrs>=0.1.0
165165
commands = mypy formate tests {posargs}
166166

167167
[testenv:pyup]
168-
basepython = python3.8
168+
basepython = python3.9
169169
skip_install = True
170170
ignore_errors = True
171171
changedir = {toxinidir}
172172
deps = pyupgrade-directories
173173
commands = pyup_dirs formate tests --py36-plus --recursive
174174

175175
[testenv:coverage]
176-
basepython = python3.8
176+
basepython = python3.9
177177
skip_install = True
178178
ignore_errors = True
179179
whitelist_externals = /bin/bash

0 commit comments

Comments
 (0)