add pre-commit hook for yapf auto formatting (#20) #21
@ -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