46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
exclude: \.min\.(js|css)(\.map)?$
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.0.1
|
|
hooks:
|
|
- id: check-ast
|
|
- id: check-json
|
|
- id: check-toml
|
|
- id: check-xml
|
|
- id: check-yaml
|
|
- id: end-of-file-fixer
|
|
- id: check-merge-conflict
|
|
- id: debug-statements
|
|
- id: detect-private-key
|
|
- id: pretty-format-json
|
|
args:
|
|
- --autofix
|
|
- --no-sort-keys
|
|
- id: trailing-whitespace
|
|
args:
|
|
- --markdown-linebreak-ext=md
|
|
- repo: https://github.com/timothycrosley/isort
|
|
rev: 5.10.1
|
|
hooks:
|
|
- id: isort
|
|
- repo: https://github.com/psf/black
|
|
rev: 21.12b0
|
|
hooks:
|
|
- id: black
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v2.29.1
|
|
hooks:
|
|
- id: pyupgrade
|
|
args:
|
|
- --py38-plus
|
|
- repo: https://github.com/pycqa/flake8
|
|
rev: 4.0.1
|
|
hooks:
|
|
- id: flake8
|
|
additional_dependencies:
|
|
- flake8-noqa
|
|
- flake8-bugbear
|
|
- flake8-builtins
|
|
- flake8-comprehensions
|
|
- flake8-eradicate
|
|
- flake8-pytest-style
|