manuels-scolaires/.pre-commit-config.yaml

34 lines
818 B
YAML
Executable file

exclude: \.min\.(js|css)$|/generated/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-ast
types: [python]
- id: check-json
types: [json]
- id: check-toml
types: [toml]
- id: check-xml
types: [xml]
- id: check-yaml
types: [yaml]
- id: end-of-file-fixer
- id: check-merge-conflict
- 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.8.0
hooks:
- id: isort
types: [python]
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
types: [python]