@@ -13,10 +13,18 @@ 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" ,
17+ # Until we stop supporting older numpy versions (<2.1)
18+ " ignore:(?s).*`newshape` keyword argument is deprecated.*$:DeprecationWarning" ,
1719]
1820qt_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+ ]
2028minversion = " 7"
2129testpaths = [" src/napari_matplotlib/tests" ]
2230log_cli_level = " INFO"
@@ -54,17 +62,15 @@ ignore = [
5462convention = " numpy"
5563
5664[tool .mypy ]
57- python_version = " 3.10 "
65+ python_version = " 3.12 "
5866# Block below are checks that form part of mypy 'strict' mode
5967strict = true
6068disallow_subclassing_any = false # TODO: fix
61- warn_return_any = false # TODO: fix
69+ warn_return_any = false # TODO: fix
6270ignore_missing_imports = true
6371
6472enable_error_code = [" ignore-without-code" , " redundant-expr" , " truthy-bool" ]
6573
6674[[tool .mypy .overrides ]]
67- module = [
68- " napari_matplotlib/tests/*" ,
69- ]
75+ module = [" napari_matplotlib/tests/*" ]
7076disallow_untyped_defs = false
0 commit comments