diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bc37adec..610527e8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: pretty-format-ini args: [--autofix] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.1 # Must match requirements-dev.txt + rev: v0.6.3 # Must match requirements-dev.txt hooks: - id: ruff args: [--fix] diff --git a/src/AutoSplitImage.py b/src/AutoSplitImage.py index 8654fce7..b2b5e26b 100644 --- a/src/AutoSplitImage.py +++ b/src/AutoSplitImage.py @@ -215,7 +215,9 @@ def compare_with_capture(self, default: "AutoSplit | int", capture: MatLike | No if not is_valid_image(self.byte_array): return 0.0 - resized_capture = cv2.resize(capture, self.byte_array.shape[1::-1], interpolation=cv2.INTER_NEAREST) + resized_capture = cv2.resize( + capture, self.byte_array.shape[1::-1], interpolation=cv2.INTER_NEAREST + ) return get_comparison_method_by_index( self.__get_comparison_method_index(default),