add pre-commit hook for yapf auto formatting (#20)

This commit is contained in:
Lukas Grossberger 2021-06-27 10:57:43 +02:00
parent d10706e301
commit cb97db9579
1 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,12 @@
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