8000 DEV: add flake8-force plugin · matplotlib/matplotlib@dacf1df · GitHub
[go: up one dir, main page]

Skip to content

Commit dacf1df

Browse files
committed
DEV: add flake8-force plugin
Add plugin to fix flake8's behavior to run all checks even if there is a syntax error.
1 parent ddd8fb8 commit dacf1df

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,4 @@ per-file-ignores =
113113
examples/user_interfaces/pylab_with_gtk4_sgskip.py: E402
114114
examples/user_interfaces/toolmanager_sgskip.py: E402
115115
examples/userdemo/pgf_preamble_sgskip.py: E402
116+
force-check = True

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repos:
2828
rev: 4.0.1
2929
hooks:
3030
- id: flake8
31-
additional_dependencies: [pydocstyle>5.1.0, flake8-docstrings>1.4.0]
31+
additional_dependencies: [pydocstyle>5.1.0, flake8-docstrings>1.4.0, flake8-force]
3232
args: ["--docstring-convention=all"]
3333
- repo: https://github.com/codespell-project/codespell
3434
rev: v2.1.0

requirements/testing/flake8.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ flake8>=3.8
55
pydocstyle>=5.1.0
66
# 1.4.0 adds docstring-convention=all
77
flake8-docstrings>=1.4.0
8+
# fix bug where flake8 aborts checking on syntax error
9+
flake8-force

0 commit comments

Comments
 (0)
0