modern-python-mwe/.pre-commit-config.yaml

26 lines
686 B
YAML
Raw Normal View History

2022-03-16 21:57:47 +00:00
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
exclude: .*\.(md|json)
- id: end-of-file-fixer
exclude: .*\.(json)
- id: check-yaml
- id: check-added-large-files
args: [--maxkb=5120] # 2 MB
- repo: https://github.com/psf/black
2022-11-23 03:09:15 +00:00
rev: 22.10.0
2022-03-16 21:57:47 +00:00
hooks:
- id: black
name: Formatting
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
name: Import order
args: ["--profile=black"]