Skip to content

Commit 37e4255

Browse files
committed
Add ignores for running "mypy ." on the entire source tree
1 parent 62c8ac5 commit 37e4255

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ repos:
5050
exclude: |
5151
(?x)(
5252
^build/
53+
| ^pyximages/
54+
| conf\.py$
5355
| .*/setup.*\.py$
5456
| .*/demo.py$
5557
| .*/auto_examples/

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ warn_unreachable = true
77
exclude = '''
88
(?x)(
99
^build/
10+
| ^pyximages/
11+
| conf\.py$
1012
| .*/setup.*\.py$
1113
| .*/demo.py$
1214
| .*/auto_examples/
@@ -29,9 +31,6 @@ exclude = '''
2931
allow_untyped_defs = true
3032
allow_untyped_calls = true
3133

32-
## Unfortunately need this to fix matplotlib errors
33-
#disable_error_code = "attr-defined"
34-
3534
[[tool.mypy.overrides]]
3635
module = "scipy"
3736
ignore_missing_imports = true

0 commit comments

Comments
 (0)