Skip to content

Commit 65f3c6b

Browse files
committed
Try updating mypy's python version.
1 parent efd598f commit 65f3c6b

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

pyproject.toml

+11-7
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,16 @@ filterwarnings = [
1313
"ignore:distutils Version classes are deprecated:DeprecationWarning",
1414
"ignore:`np.bool8` is a deprecated alias for `np.bool_`:DeprecationWarning",
1515
# Coming from pydantic via napari
16-
"ignore:Pickle, copy, and deepcopy support will be removed from itertools in Python 3.14.:DeprecationWarning"
16+
"ignore:Pickle, copy, and deepcopy support will be removed from itertools in Python 3.14.:DeprecationWarning",
1717
]
1818
qt_api = "pyqt6"
19-
addopts = ["--mpl", "--mpl-baseline-relative", "--strict-config", "--strict-markers", "-ra"]
19+
addopts = [
20+
"--mpl",
21+
"--mpl-baseline-relative",
22+
"--strict-config",
23+
"--strict-markers",
24+
"-ra",
25+
]
2026
minversion = "7"
2127
testpaths = ["src/napari_matplotlib/tests"]
2228
log_cli_level = "INFO"
@@ -54,17 +60,15 @@ ignore = [
5460
convention = "numpy"
5561

5662
[tool.mypy]
57-
python_version = "3.10"
63+
python_version = "3.12"
5864
# Block below are checks that form part of mypy 'strict' mode
5965
strict = true
6066
disallow_subclassing_any = false # TODO: fix
61-
warn_return_any = false # TODO: fix
67+
warn_return_any = false # TODO: fix
6268
ignore_missing_imports = true
6369

6470
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
6571

6672
[[tool.mypy.overrides]]
67-
module = [
68-
"napari_matplotlib/tests/*",
69-
]
73+
module = ["napari_matplotlib/tests/*"]
7074
disallow_untyped_defs = false

0 commit comments

Comments
 (0)