summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 0000000..4980047
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,29 @@
+ci:
+ autofix_prs: false
+
+repos:
+ - repo: https://github.com/pycqa/isort
+ rev: 5.11.5
+ hooks:
+ - id: isort
+
+ - repo: https://github.com/psf/black
+ rev: 23.1.0
+ hooks:
+ - id: black
+ args: ["--target-version", "py310"]
+
+ - repo: https://github.com/PyCQA/doc8
+ rev: 0.10.1
+ hooks:
+ - id: doc8
+ additional_dependencies:
+ - toml
+
+ # Removing since aristaproto don't use the java code and this breaks CI.
+ # - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
+ # rev: v2.10.0
+ # hooks:
+ # - id: pretty-format-java
+ # args: [--autofix, --aosp]
+ # files: ^.*\.java$