Compare commits

...

2 Commits

Author SHA1 Message Date
3bed7222ec Merge pull request 'add pre-commit hook for yapf auto formatting (#20)' (#21) from LukasGrossberger/ki-backend:yapf-pre-commit into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #21
2021-06-27 11:42:29 +02:00
Lukas Grossberger
cb97db9579 add pre-commit hook for yapf auto formatting (#20)
All checks were successful
continuous-integration/drone/pr Build is passing
2021-06-27 10:57:50 +02:00

View File

@ -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