summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorseth <[email protected]>2022-12-26 03:23:14 -0500
committerseth <[email protected]>2022-12-26 03:44:17 -0500
commitd06defd8d7561d90ecbf7cfb4d5e4778a348e98e (patch)
tree0054f5b704bfb0f9a21cc6d2626a62a7c1594d3e /.pre-commit-config.yaml
parente16a396db9aa0ac707654d8f03c0c8a3b05b7c9f (diff)
chore: replace flake8 with pylint, refactor, add pre-commit
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 0000000..ca42340
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,19 @@
+- repo: https://github.com/pycqa/isort
+ rev: 5.11.2
+ hooks:
+ - id: isort
+ name: isort (python)
+
+- repo: local
+ hooks:
+ - id: pylint
+ name: pylint
+ entry: pylint
+ language: system
+ types: [python]
+
+- repo: https://github.com/pre-commit/mirrors-yapf
+ rev: "v0.32.0" # Use the sha / tag you want to point at
+ hooks:
+ - id: yapf
+ additional_dependencies: ["toml"]