File tree Expand file tree Collapse file tree 2 files changed +20
-14
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +20
-14
lines changed
Original file line number Diff line number Diff line change @@ -30,14 +30,16 @@ repos:
30
30
rev : v1.1.1
31
31
hooks :
32
32
- id : mypy
33
- args : ["--config-file=pyproject.toml", "--namespace-packages", "--explicit-package-bases"]
34
33
additional_dependencies : [
35
- " pandas-stubs" ,
36
- " types-pillow" ,
37
- " types-python-dateutil" ,
38
- " types-psutil" ,
39
- " types-docutils" ,
40
- " types-PyYAML" ]
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
41
43
- repo : https://github.com/pycqa/flake8
42
44
rev : 6.0.0
43
45
hooks :
Original file line number Diff line number Diff line change @@ -136,20 +136,24 @@ convention = "numpy"
136
136
"galleries/users_explain/text/text_props.py" = [" E501" ]
137
137
138
138
[tool .mypy ]
139
- mypy_path = ' lib/matplotlib/'
140
- files = ' lib/matplotlib/**'
139
+ ignore_missing_imports = true
140
+ enable_incomplete_feature = [
141
+ " Unpack" ,
142
+ ]
141
143
exclude = [
142
144
" .*/matplotlib/(sphinxext|backends|testing/jpl_units)" ,
143
145
" .*/mpl_toolkits" ,
144
- " .lib/matplotlib/typing.py" ,
145
146
# tinypages is used for testing the sphinx ext,
146
147
# stubtest will import and run, opening a figure if not excluded
147
148
" .*/tinypages" ,
149
+ " galleries/" ,
150
+ " lib/matplotlib/backends/" ,
151
+ " lib/matplotlib/testing/jpl_units" ,
152
+ " lib/mpl_toolkits/" ,
153
+ " lib/matplotlib/tests/" ,
154
+ " doc/sphinxext/"
148
155
]
149
- ignore_missing_imports = true
150
- enable_incomplete_feature = [
151
- " Unpack" ,
152
- ]
156
+
153
157
154
158
[tool .rstcheck ]
155
159
ignore_directives = [
You can’t perform that action at this time.
0 commit comments