Skip to content

Commit 906b7ee

Browse files
committed
Bump mypy
1 parent 612344d commit 906b7ee

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
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: |

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ autodoc_exclude_members = [
124124
]
125125

126126
[tool.mypy]
127-
python_version = "3.8"
127+
python_version = "3.9"
128128
namespace_packages = true
129129
check_untyped_defs = true
130130
warn_unused_ignores = true

repo_helper.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ use_whey: true
1515
min_coverage: 95
1616
sphinx_html_theme: furo
1717
docs_fail_on_warning: true
18+
mypy_version: 1.16
19+
python_deploy_version: 3.9
1820

1921
python_versions:
2022
- '3.7'

snippet_fmt/__init__.py

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

3939
# 3rd party
4040
import click
41-
import entrypoints # type: ignore[import]
41+
import entrypoints # type: ignore[import-untyped]
4242
from consolekit.terminal_colours import ColourTrilean, resolve_color_default
4343
from consolekit.utils import coloured_diff
4444
from domdf_python_tools.paths import PathPlus

tox.ini

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test =
5050
py312-click{7,8}
5151
py313-click{7,8}
5252
qa = mypy, lint
53-
cov = py38-click7, coverage
53+
cov = py39-click7, coverage
5454

5555
[testenv]
5656
setenv =
@@ -110,7 +110,7 @@ commands =
110110
check-wheel-contents dist/
111111

112112
[testenv:lint]
113-
basepython = python3.8
113+
basepython = python3.9
114114
changedir = {toxinidir}
115115
ignore_errors = True
116116
skip_install = True
@@ -140,32 +140,32 @@ deps =
140140
commands = python3 -m flake8_rst_docstrings_sphinx snippet_fmt tests --allow-toolbox {posargs}
141141

142142
[testenv:perflint]
143-
basepython = python3.8
143+
basepython = python3.9
144144
changedir = {toxinidir}
145145
ignore_errors = True
146146
skip_install = True
147147
deps = perflint
148148
commands = python3 -m perflint snippet_fmt {posargs}
149149

150150
[testenv:mypy]
151-
basepython = python3.8
151+
basepython = python3.9
152152
ignore_errors = True
153153
changedir = {toxinidir}
154154
deps =
155-
mypy==0.971
155+
mypy==1.16
156156
-r{toxinidir}/tests/requirements.txt
157157
commands = mypy snippet_fmt tests {posargs}
158158

159159
[testenv:pyup]
160-
basepython = python3.8
160+
basepython = python3.9
161161
skip_install = True
162162
ignore_errors = True
163163
changedir = {toxinidir}
164164
deps = pyupgrade-directories
165165
commands = pyup_dirs snippet_fmt tests --py36-plus --recursive
166166

167167
[testenv:coverage]
168-
basepython = python3.8
168+
basepython = python3.9
169169
skip_install = True
170170
ignore_errors = True
171171
whitelist_externals = /bin/bash

0 commit comments

Comments
 (0)