summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 0000000..a1dc799
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,27 @@
+exclude: json
+
+repos:
+- repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v3.2.0
+ hooks:
+ - id: check-ast
+ - id: check-docstring-first
+ - id: check-json
+ - id: check-toml
+ - id: check-vcs-permalinks
+ - id: check-yaml
+ - id: debug-statements
+ - id: end-of-file-fixer
+ - id: trailing-whitespace
+- repo: https://github.com/timothycrosley/isort
+ rev: 5.3.2
+ hooks:
+ - id: isort
+- repo: https://github.com/myint/docformatter
+ rev: v1.3.1
+ hooks:
+ - id: docformatter
+ args:
+ - --in-place
+ - --pre-summary-newline
+ - --make-summary-multi-line