20 خطوط
536 B
YAML
20 خطوط
536 B
YAML
|
|
default_stages: [pre-commit]
|
||
|
|
fail_fast: true
|
||
|
|
repos:
|
||
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||
|
|
rev: v2.3.0
|
||
|
|
hooks:
|
||
|
|
- id: check-yaml
|
||
|
|
- id: end-of-file-fixer
|
||
|
|
- id: trailing-whitespace
|
||
|
|
# Python import sorting
|
||
|
|
- repo: https://github.com/pycqa/isort
|
||
|
|
rev: 5.12.0
|
||
|
|
hooks:
|
||
|
|
- id: isort
|
||
|
|
# Python formatting (Using this mirror lets us use mypyc-compiled black, which is about 2x faster)
|
||
|
|
- repo: https://github.com/psf/black-pre-commit-mirror
|
||
|
|
rev: 24.8.0
|
||
|
|
hooks:
|
||
|
|
- id: black
|