Skip to content

Commit 20fe86c

Browse files
authored
Merge pull request #7 from spyoungtech/flake8-black-imports
add black, flake8, reorder imports to pre-commit
2 parents 1391614 + c062fd0 commit 20fe86c

File tree

9 files changed

+21449
-8170
lines changed

9 files changed

+21449
-8170
lines changed

.pre-commit-config.yaml

+24-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,27 @@ repos:
99
- id: end-of-file-fixer
1010
- id: trailing-whitespace
1111
- id: double-quote-string-fixer
12-
files: ^(FreeSimpleGUI.*)/.*\.py
12+
files: ^(FreeSimpleGUI(?:Qt|Web|Wx)?)/(?!Demo).*\.py
13+
- repo: https://github.com/asottile/reorder-python-imports
14+
rev: v3.12.0
15+
hooks:
16+
- id: reorder-python-imports
17+
files: ^(FreeSimpleGUI(?:Qt|Web|Wx)?)/(?!Demo).*\.py
18+
- repo: https://github.com/psf/black
19+
rev: '24.4.2'
20+
hooks:
21+
- id: black
22+
args:
23+
- "-S"
24+
- "-l"
25+
- "360"
26+
files: ^(FreeSimpleGUI(?:Qt|Web|Wx)?)/(?!Demo).*\.py
27+
28+
- repo: https://github.com/pycqa/flake8
29+
rev: '7.0.0' # pick a git hash / tag to point to
30+
hooks:
31+
- id: flake8
32+
args:
33+
- "--ignore"
34+
- "E501,E704,E301,W503,E701,E722,E266,E203,E231"
35+
files: FreeSimpleGUI/FreeSimpleGUI.py

0 commit comments

Comments
 (0)