aboutsummaryrefslogtreecommitdiff
path: root/.pre-commit-hooks.yml
diff options
context:
space:
mode:
Diffstat (limited to '.pre-commit-hooks.yml')
-rw-r--r--.pre-commit-hooks.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.pre-commit-hooks.yml b/.pre-commit-hooks.yml
new file mode 100644
index 0000000..3eba1f2
--- /dev/null
+++ b/.pre-commit-hooks.yml
@@ -0,0 +1,9 @@
+# File configures YAPF to be used as a git hook with https://github.com/pre-commit/pre-commit
+
+- id: yapf
+ name: yapf
+ description: "A formatter for Python files."
+ entry: yapf
+ args: [-i] #inplace
+ language: python
+ types: [python]