Skip to content

Commit be55b97

Browse files
committed
Bump mypy
1 parent 4e2aee3 commit be55b97

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
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.7"
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.7"
43+
python-version: "3.9"
4444

4545
- name: Install dependencies 🔧
4646
run: |

flake8_helper/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ def report_error(self, node: ast.AST, error: str) -> None:
6363
"""
6464

6565
self.errors.append((
66-
node.lineno,
67-
node.col_offset,
66+
node.lineno, # type: ignore[attr-defined]
67+
node.col_offset, # type: ignore[attr-defined]
6868
error,
6969
))
7070

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ autodoc_exclude_members = [
126126
]
127127

128128
[tool.mypy]
129-
python_version = "3.7"
129+
python_version = "3.9"
130130
namespace_packages = true
131131
check_untyped_defs = true
132132
warn_unused_ignores = true

repo_helper.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ license: 'MIT'
1212
short_desc: "A helper library for Flake8 plugins."
1313

1414
min_coverage: 100
15-
python_deploy_version: 3.6
15+
mypy_version: 1.16
16+
python_deploy_version: 3.9
1617
sphinx_html_theme: furo
1718
docs_fail_on_warning: true
1819
use_whey: true

tox.ini

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

5050
[testenv]
5151
setenv =
@@ -102,7 +102,7 @@ commands =
102102
check-wheel-contents dist/
103103

104104
[testenv:lint]
105-
basepython = python3.7
105+
basepython = python3.9
106106
changedir = {toxinidir}
107107
ignore_errors = True
108108
skip_install = False
@@ -132,32 +132,32 @@ deps =
132132
commands = python3 -m flake8_rst_docstrings_sphinx flake8_helper tests --allow-toolbox {posargs}
133133

134134
[testenv:perflint]
135-
basepython = python3.7
135+
basepython = python3.9
136136
changedir = {toxinidir}
137137
ignore_errors = True
138138
skip_install = True
139139
deps = perflint
140140
commands = python3 -m perflint flake8_helper {posargs}
141141

142142
[testenv:mypy]
143-
basepython = python3.7
143+
basepython = python3.9
144144
ignore_errors = True
145145
changedir = {toxinidir}
146146
deps =
147-
mypy==0.971
147+
mypy==1.16
148148
-r{toxinidir}/tests/requirements.txt
149149
commands = mypy flake8_helper tests {posargs}
150150

151151
[testenv:pyup]
152-
basepython = python3.7
152+
basepython = python3.9
153153
skip_install = True
154154
ignore_errors = True
155155
changedir = {toxinidir}
156156
deps = pyupgrade-directories
157157
commands = pyup_dirs flake8_helper tests --py36-plus --recursive
158158

159159
[testenv:coverage]
160-
basepython = python3.7
160+
basepython = python3.9
161161
skip_install = True
162162
ignore_errors = True
163163
whitelist_externals = /bin/bash

0 commit comments

Comments
 (0)