Skip to content

Commit b778328

Browse files
committed
Add a Flake8 phase in pre-commit hooks
1 parent 47d779b commit b778328

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.flake8

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
# Match the length used with Black
3+
max-line-length = 88
4+
extend-ignore = E203

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,8 @@ repos:
2525
hooks:
2626
- id: black
2727
name: black-24.10.0
28+
29+
- repo: https://github.com/pycqa/flake8
30+
rev: 7.0.0
31+
hooks:
32+
- id: flake8

0 commit comments

Comments
 (0)