ki-backend/.pre-commit-config.yaml
Lukas Grossberger cb97db9579
All checks were successful
continuous-integration/drone/pr Build is passing
add pre-commit hook for yapf auto formatting (#20)
2021-06-27 10:57:50 +02:00

21 lines
434 B
YAML

- repo: local
hooks:
- id: flake8
name: flake8
entry: flake8
language: system
files: ^.*\.py$
exclude: ^(migrations).*$
- id: yapf
name: yapf
entry: yapf -i
language: system
files: ^.*\.py$
exclude: ^(migrations).*$
- id: unittest
name: unittest
entry: python -m unittest discover ki
language: system
exclude: .*
always_run: true