forked from spyoungtech/FreeSimpleGUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
35 lines (34 loc) · 1 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: mixed-line-ending
args: ["-f", "lf"]
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: double-quote-string-fixer
files: ^(FreeSimpleGUI(?:Qt|Web|Wx)?)/(?!Demo).*\.py
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.13.0
hooks:
- id: reorder-python-imports
files: ^(FreeSimpleGUI(?:Qt|Web|Wx)?)/(?!Demo).*\.py
- repo: https://github.com/psf/black
rev: '24.4.2'
hooks:
- id: black
args:
- "-S"
- "-l"
- "360"
files: ^(FreeSimpleGUI(?:Qt|Web|Wx)?)/(?!Demo).*\.py
- repo: https://github.com/pycqa/flake8
rev: '7.1.0' # pick a git hash / tag to point to
hooks:
- id: flake8
args:
- "--ignore"
- "E501,E704,E301,W503,E701,E722,E266,E203,E231,E402,F401"
files: FreeSimpleGUI/.*