@@ -13,10 +13,18 @@ filterwarnings = [
13
13
" ignore:distutils Version classes are deprecated:DeprecationWarning" ,
14
14
" ignore:`np.bool8` is a deprecated alias for `np.bool_`:DeprecationWarning" ,
15
15
# 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" ,
17
+ # Until we stop supporting older numpy versions (<2.1)
18
+ " ignore:(?s).*`newshape` keyword argument is deprecated.*$:DeprecationWarning" ,
17
19
]
18
20
qt_api = " pyqt6"
19
- addopts = [" --mpl" , " --mpl-baseline-relative" , " --strict-config" , " --strict-markers" , " -ra" ]
21
+ addopts = [
22
+ " --mpl" ,
23
+ " --mpl-baseline-relative" ,
24
+ " --strict-config" ,
25
+ " --strict-markers" ,
26
+ " -ra" ,
27
+ ]
20
28
minversion = " 7"
21
29
testpaths = [" src/napari_matplotlib/tests" ]
22
30
log_cli_level = " INFO"
@@ -54,17 +62,15 @@ ignore = [
54
62
convention = " numpy"
55
63
56
64
[tool .mypy ]
57
- python_version = " 3.10 "
65
+ python_version = " 3.12 "
58
66
# Block below are checks that form part of mypy 'strict' mode
59
67
strict = true
60
68
disallow_subclassing_any = false # TODO: fix
61
- warn_return_any = false # TODO: fix
69
+ warn_return_any = false # TODO: fix
62
70
ignore_missing_imports = true
63
71
64
72
enable_error_code = [" ignore-without-code" , " redundant-expr" , " truthy-bool" ]
65
73
66
74
[[tool .mypy .overrides ]]
67
- module = [
68
- " napari_matplotlib/tests/*" ,
69
- ]
75
+ module = [" napari_matplotlib/tests/*" ]
70
76
disallow_untyped_defs = false
0 commit comments