Skip to content

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

chore: update pre-commit configuration

SWHL9ceb3420f551
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 3785486..a58aee7 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,17 +1,14 @@
repos:
-- repo: https://gitee.com/SWHL/autoflake
- rev: v2.1.1
- hooks:
- - id: autoflake
- args:
- [
- "--recursive",
- "--in-place",
- "--ignore-init-module-imports",
- ]
- files: \.py$
-- repo: https://gitee.com/SWHL/black
- rev: 23.1.0
- hooks:
- - id: black
- files: \.py$
+ - repo: https://github.com/astral-sh/ruff-pre-commit
+ rev: v0.16.0
+ hooks:
+ - id: ruff-check
+ args:
+ - --fix
+ - --unsafe-fixes
+ - --line-length=88
+ - --select=F401,F841,I
+ - --per-file-ignores=__init__.py:F401
+ - id: ruff-format
+ args:
+ - --line-length=88