Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ fail_fast: true
repos:

- repo: https://github.com/asottile/pyupgrade
rev: v3.20.0
rev: v3.21.2
hooks:
- id: pyupgrade
args:
- --py38-plus
- --keep-runtime-typing

- repo: https://github.com/ambv/black
rev: 25.1.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.10.0
hooks:
- id: black
language_version: python3.10
Expand All @@ -27,7 +27,7 @@ repos:
# - id: validate-pyproject

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.16.0
rev: v2.4.0
hooks:
- id: mypy
verbose: true
Expand All @@ -36,7 +36,7 @@ repos:
#args: [ --strict ]

- repo: https://github.com/pycqa/flake8
rev: 7.2.0 # pick a git hash / tag to point to
rev: 7.4.1 # pick a git hash / tag to point to
hooks:
- id: flake8 # stop the build if there are Python syntax errors or undefined names
additional_dependencies: [ flake8-docstrings ]
Expand Down Expand Up @@ -84,7 +84,7 @@ repos:
# ]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 # Use the ref you want to point at
rev: v6.0.0 # Use the ref you want to point at
hooks:
- id: check-ast
name: check python ast
Expand Down
2 changes: 1 addition & 1 deletion samples/recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def run_ocr_confidence(img_path):
if detection["conf"][i] < confidence:
continue

(x, y, w, h) = (
x, y, w, h = (
detection["left"][i],
detection["top"][i],
detection["width"][i],
Expand Down
Loading