aboutsummaryrefslogtreecommitdiff
path: root/.pre-commit-config.yml
diff options
context:
space:
mode:
Diffstat (limited to '.pre-commit-config.yml')
-rw-r--r--.pre-commit-config.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.pre-commit-config.yml b/.pre-commit-config.yml
new file mode 100644
index 0000000..3bd65c2
--- /dev/null
+++ b/.pre-commit-config.yml
@@ -0,0 +1,30 @@
+# File introduces automated checks triggered on git events
+# to enable run `pip install pre-commit && pre-commit install`
+
+repos:
+ - repo: local
+ hooks:
+ - id: yapf
+ name: yapf
+ language: python
+ entry: yapf
+ args: [-i, -vv]
+ types: [python]
+ - repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v3.2.0
+ hooks:
+ - id: trailing-whitespace
+ - id: check-docstring-first
+ - id: check-json
+ - id: check-added-large-files
+ - id: check-yaml
+ - id: debug-statements
+ - id: requirements-txt-fixer
+ - id: check-merge-conflict
+ - id: double-quote-string-fixer
+ - id: end-of-file-fixer
+ - id: sort-simple-yaml
+ - repo: meta
+ hooks:
+ - id: check-hooks-apply
+ - id: check-useless-excludes