Skip to content

Commit

Permalink
Merge pull request #7 from spyoungtech/flake8-black-imports
Browse files Browse the repository at this point in the history
add black, flake8, reorder imports to pre-commit
  • Loading branch information
spyoungtech authored May 12, 2024
2 parents 1391614 + c062fd0 commit 20fe86c
Show file tree
Hide file tree
Showing 9 changed files with 21,449 additions and 8,170 deletions.
25 changes: 24 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,27 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: double-quote-string-fixer
files: ^(FreeSimpleGUI.*)/.*\.py
files: ^(FreeSimpleGUI(?:Qt|Web|Wx)?)/(?!Demo).*\.py
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.12.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.0.0' # pick a git hash / tag to point to
hooks:
- id: flake8
args:
- "--ignore"
- "E501,E704,E301,W503,E701,E722,E266,E203,E231"
files: FreeSimpleGUI/FreeSimpleGUI.py
Loading

0 comments on commit 20fe86c

Please # to comment.