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

Merged
weeman merged 1 commits from Gro/ki-backend:yapf-pre-commit into main 2021-06-27 11:42:30 +02:00

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