From cb97db9579fa072808700c1e6aa2d5bdebcfba96 Mon Sep 17 00:00:00 2001 From: Lukas Grossberger Date: Sun, 27 Jun 2021 10:57:43 +0200 Subject: [PATCH] add pre-commit hook for yapf auto formatting (#20) --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c8e86b7..632b38b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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