Skip to content

Commit 49d316e

Browse files
committed
dunno what to do w/ this error
1 parent 54a01e3 commit 49d316e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ repos:
3030
rev: v1.1.1
3131
hooks:
3232
- id: mypy
33-
files: ^lib/matplotlib
34-
args: [
35-
"--config-file=pyproject.toml",
36-
"--explicit-package-bases"]
33+
args: ["--config-file=pyproject.toml", "--namespace-packages", "--explicit-package-bases"]
3734
additional_dependencies: [
3835
"pandas-stubs",
3936
"types-pillow",

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,12 @@ convention = "numpy"
136136
"galleries/users_explain/text/text_props.py" = ["E501"]
137137

138138
[tool.mypy]
139+
mypy_path = 'lib/matplotlib/'
140+
files = 'lib/matplotlib/**'
139141
exclude = [
140142
".*/matplotlib/(sphinxext|backends|testing/jpl_units)",
141143
".*/mpl_toolkits",
144+
".lib/matplotlib/typing.py",
142145
# tinypages is used for testing the sphinx ext,
143146
# stubtest will import and run, opening a figure if not excluded
144147
".*/tinypages",

0 commit comments

Comments
 (0)