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
|
language: system
|
||||||
files: ^.*\.py$
|
files: ^.*\.py$
|
||||||
exclude: ^(migrations).*$
|
exclude: ^(migrations).*$
|
||||||
|
- id: yapf
|
||||||
|
name: yapf
|
||||||
|
entry: yapf -i
|
||||||
|
language: system
|
||||||
|
files: ^.*\.py$
|
||||||
|
exclude: ^(migrations).*$
|
||||||
- id: unittest
|
- id: unittest
|
||||||
name: unittest
|
name: unittest
|
||||||
entry: python -m unittest discover ki
|
entry: python -m unittest discover ki
|
||||||
|
Loading…
Reference in New Issue
Block a user