forked from kompetenzinventar/ki-backend
add pre-commit hook for yapf auto formatting (#20)
This commit is contained in:
parent
d10706e301
commit
cb97db9579
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user