diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ce56251..d3c4718 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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 @@ -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 ] @@ -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 diff --git a/samples/recognition.py b/samples/recognition.py index b73adf3..f4dcab7 100644 --- a/samples/recognition.py +++ b/samples/recognition.py @@ -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],