diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d42a203..5c49703 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,30 +5,30 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v6.0.0 hooks: - id: check-ast - id: trailing-whitespace - id: end-of-file-fixer - id: mixed-line-ending - id: check-added-large-files - - repo: https://github.com/psf/black - rev: 23.3.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.1.0 hooks: - id: black - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.34.0 + rev: v0.47.0 hooks: - id: markdownlint - repo: https://github.com/pycqa/flake8 - rev: 6.0.0 + rev: 7.3.0 hooks: - id: flake8 args: - "--max-line-length=88" - "--ignore=E203" - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 7.0.0 hooks: - id: isort args: diff --git a/largestinteriorrectangle/lir_within_polygon.py b/largestinteriorrectangle/lir_within_polygon.py index 4735a2a..3228294 100644 --- a/largestinteriorrectangle/lir_within_polygon.py +++ b/largestinteriorrectangle/lir_within_polygon.py @@ -40,9 +40,7 @@ def check_for_opencv(): cv = cv2 except Exception: - raise ImportError( - """ + raise ImportError(""" Missing optional dependency 'opencv-python' to compute lir based on polygon. Use pip or conda to install it. - """ - ) + """)