Skip to content

Commit d5a74c4

Browse files
committed
Bump mypy
1 parent 3d5c16b commit d5a74c4

File tree

8 files changed

+17
-16
lines changed

8 files changed

+17
-16
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: |

flake8_encodings/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050

5151
if TYPE_CHECKING:
5252
# 3rd party
53-
from jedi import Script
54-
from jedi.api.classes import Name # type: ignore[import]
53+
from jedi import Script # type: ignore[import-untyped]
54+
from jedi.api.classes import Name # type: ignore[import-untyped]
5555

5656
__author__: str = "Dominic Davis-Foster"
5757
__copyright__: str = "2020-2021 Dominic Davis-Foster"
@@ -197,7 +197,7 @@ class ClassVisitor(Visitor): # pragma: no cover (py313+)
197197
def __init__(self):
198198
try:
199199
# 3rd party
200-
import jedi # type: ignore[import]
200+
import jedi
201201
except ImportError as e:
202202
exc = e.__class__("This class requires 'jedi' to be installed but it could not be imported.")
203203
exc.__traceback__ = e.__traceback__

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ autodoc_exclude_members = [
129129
]
130130

131131
[tool.mypy]
132-
python_version = "3.8"
132+
python_version = "3.9"
133133
namespace_packages = true
134134
check_untyped_defs = true
135135
warn_unused_ignores = true

repo_helper.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ short_desc: "A Flake8 plugin to identify incorrect use of encodings."
1313

1414
min_coverage: 94
1515
use_whey: true
16-
python_deploy_version: 3.8
16+
mypy_version: 1.16
17+
python_deploy_version: 3.9
1718
docs_fail_on_warning: true
1819
tox_testenv_extras: classes
1920
sphinx_html_theme: furo

tests/test_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
try:
1414
# 3rd party
15-
import jedi # type: ignore[import] # noqa: F401
15+
import jedi # type: ignore[import-untyped] # noqa: F401
1616
has_jedi = True
1717
except ImportError:
1818
has_jedi = False

tests/test_visitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
try:
1414
# 3rd party
15-
import jedi # type: ignore[import] # noqa: F401
15+
import jedi # type: ignore[import-untyped] # noqa: F401
1616
has_jedi = True
1717
except ImportError:
1818
has_jedi = False

tox.ini

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ requires =
4444
[envlists]
4545
test = py37, py38, py39, py310, py311, py312, py313, pypy37, pypy38, pypy39
4646
qa = mypy, lint
47-
cov = py38, coverage
47+
cov = py39, coverage
4848

4949
[testenv:.package]
5050
setenv =
@@ -85,7 +85,7 @@ commands =
8585
check-wheel-contents dist/
8686

8787
[testenv:lint]
88-
basepython = python3.8
88+
basepython = python3.9
8989
changedir = {toxinidir}
9090
ignore_errors = True
9191
skip_install = False
@@ -115,26 +115,26 @@ deps =
115115
commands = python3 -m flake8_rst_docstrings_sphinx flake8_encodings tests --allow-toolbox {posargs}
116116

117117
[testenv:perflint]
118-
basepython = python3.8
118+
basepython = python3.9
119119
changedir = {toxinidir}
120120
ignore_errors = True
121121
skip_install = True
122122
deps = perflint
123123
commands = python3 -m perflint flake8_encodings {posargs}
124124

125125
[testenv:mypy]
126-
basepython = python3.8
126+
basepython = python3.9
127127
ignore_errors = True
128128
changedir = {toxinidir}
129129
extras = classes
130130
deps =
131-
mypy==0.971
131+
mypy==1.16
132132
-r{toxinidir}/tests/requirements.txt
133133
-r{toxinidir}/stubs.txt
134134
commands = mypy flake8_encodings tests {posargs}
135135

136136
[testenv:pyup]
137-
basepython = python3.8
137+
basepython = python3.9
138138
skip_install = True
139139
ignore_errors = True
140140
changedir = {toxinidir}
@@ -143,7 +143,7 @@ extras = classes
143143
commands = pyup_dirs flake8_encodings tests --py36-plus --recursive
144144

145145
[testenv:coverage]
146-
basepython = python3.8
146+
basepython = python3.9
147147
skip_install = True
148148
ignore_errors = True
149149
whitelist_externals = /bin/bash

0 commit comments

Comments
 (0)