Skip to content

πŸ“„ Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

chore(pre-commit): Add isort and pylint config

SWHL93e51344b397
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 5c227d6..7c93566 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,5 +1,5 @@
repos:
-- repo: https://gitee.com/SWHL/autoflake
+- repo: https://github.com/PyCQA/autoflake
rev: v2.1.1
hooks:
- id: autoflake
@@ -12,8 +12,23 @@ repos:
"--ignore-init-module-imports",
]
files: \.py$
-- repo: https://gitee.com/SWHL/black
+- repo: https://github.com/PyCQA/isort
+ rev: 5.13.2
+ hooks:
+ - id: isort
+ exclude: doc/data/messages/
+- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
+ files: \.py$
+- repo: https://github.com/pycqa/pylint
+ rev: pylint-2.4.4
+ hooks:
+ - id: pylint
+ args:
+ [
+ "--disable=invalid-name,missing-module-docstring",
+ "--disable=W0612,W0631,W0703,W0621,W0613,W0611,W1308,C0411,C0111,C0116,C0103,C0301,C0304,C0305,E1101,E0401,R0913,R0914,R0915,R0903",
+ ]
files: \.py$
\ No newline at end of file