25 lines
653 B
YAML
25 lines
653 B
YAML
|
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
|
||
|
- repo: https://github.com/psf/black
|
||
|
rev: 22.3.0
|
||
|
hooks:
|
||
|
- id: black
|
||
|
args: # arguments to configure black
|
||
|
- --line-length=120
|
||
|
- --include='\.pyi?$'
|
||
|
# these folders wont be formatted by black
|
||
|
- --exclude="""\.git |
|
||
|
\.__pycache__|
|
||
|
build|
|
||
|
libs|
|
||
|
.cache"""
|
||
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||
|
rev: v13.0.0
|
||
|
hooks:
|
||
|
- id: clang-format
|