File tree Expand file tree Collapse file tree 2 files changed +27
-4
lines changed Expand file tree Collapse file tree 2 files changed +27
-4
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,20 @@ repos:
26
26
- id : no-commit-to-branch # default is master and main
27
27
- id : trailing-whitespace
28
28
exclude_types : [svg]
29
+ - repo : https://github.com/pre-commit/mirrors-mypy
30
+ rev : v1.1.1
31
+ hooks :
32
+ - id : mypy
33
+ additional_dependencies : [
34
+ pandas-stubs,
35
+ types-pillow,
36
+ types-python-dateutil,
37
+ types-psutil,
38
+ types-docutils,
39
+ types-PyYAML]
40
+ args : ["--config-file=pyproject.toml",
41
+ " lib/matplotlib" ]
42
+ pass_filenames : false
29
43
- repo : https://github.com/pycqa/flake8
30
44
rev : 6.0.0
31
45
hooks :
Original file line number Diff line number Diff line change @@ -136,17 +136,26 @@ convention = "numpy"
136
136
"galleries/users_explain/text/text_props.py" = [" E501" ]
137
137
138
138
[tool .mypy ]
139
+ ignore_missing_imports = true
140
+ enable_incomplete_feature = [
141
+ " Unpack" ,
142
+ ]
139
143
exclude = [
140
144
" .*/matplotlib/(sphinxext|backends|testing/jpl_units)" ,
141
145
" .*/mpl_toolkits" ,
142
146
# tinypages is used for testing the sphinx ext,
143
147
# stubtest will import and run, opening a figure if not excluded
144
148
" .*/tinypages" ,
149
+ " galleries/" ,
150
+ " doc/" ,
151
+ " lib/matplotlib/backends/" ,
152
+ " lib/matplotlib/sphinxext" ,
153
+ " lib/matplotlib/testing/jpl_units" ,
154
+ " lib/mpl_toolkits/" ,
155
+ " lib/matplotlib/tests/" ,
156
+
145
157
]
146
- ignore_missing_imports = true
147
- enable_incomplete_feature = [
148
- " Unpack" ,
149
- ]
158
+
150
159
151
160
[tool .rstcheck ]
152
161
ignore_directives = [
You can’t perform that action at this time.
0 commit comments