diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 44880e1..a0c7e9d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v6.0.0 hooks: - id: check-case-conflict - id: check-merge-conflict @@ -12,7 +12,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/asottile/pyupgrade - rev: v3.3.1 + rev: v3.21.2 hooks: - id: pyupgrade name: PyUpgrade 3.6+ @@ -20,17 +20,17 @@ repos: exclude: ^bin/ - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 7.0.0 hooks: - id: isort - - repo: https://github.com/psf/black - rev: 23.1.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 25.12.0 hooks: - id: black - repo: https://github.com/asottile/setup-cfg-fmt - rev: v2.2.0 + rev: v3.2.0 hooks: - id: setup-cfg-fmt args: ["--min-py3-version", "3.6"] diff --git a/setup.py b/setup.py index 4a52a95..0b1f01a 100644 --- a/setup.py +++ b/setup.py @@ -7,6 +7,7 @@ See LICENSE for license details. ---------------------------------------------------------------------------~(*) """ + from setuptools import setup setup( diff --git a/src/surface_tracker/__init__.py b/src/surface_tracker/__init__.py index 9b7ad6a..8d21406 100644 --- a/src/surface_tracker/__init__.py +++ b/src/surface_tracker/__init__.py @@ -7,6 +7,7 @@ See LICENSE for license details. ---------------------------------------------------------------------------~(*) """ + from . import utils from .camera import Camera from .coordinate_space import CoordinateSpace diff --git a/src/surface_tracker/coordinate_space.py b/src/surface_tracker/coordinate_space.py index cbb61cd..00becae 100644 --- a/src/surface_tracker/coordinate_space.py +++ b/src/surface_tracker/coordinate_space.py @@ -7,6 +7,7 @@ See LICENSE for license details. ---------------------------------------------------------------------------~(*) """ + import enum diff --git a/src/surface_tracker/corner.py b/src/surface_tracker/corner.py index ecbee4e..cedde2e 100644 --- a/src/surface_tracker/corner.py +++ b/src/surface_tracker/corner.py @@ -7,6 +7,7 @@ See LICENSE for license details. ---------------------------------------------------------------------------~(*) """ + import enum import typing as T diff --git a/src/surface_tracker/heatmap.py b/src/surface_tracker/heatmap.py index 10b4b5e..3029445 100644 --- a/src/surface_tracker/heatmap.py +++ b/src/surface_tracker/heatmap.py @@ -7,6 +7,7 @@ See LICENSE for license details. ---------------------------------------------------------------------------~(*) """ + import enum import typing as T diff --git a/src/surface_tracker/image_crop.py b/src/surface_tracker/image_crop.py index 9a58b1e..235812b 100644 --- a/src/surface_tracker/image_crop.py +++ b/src/surface_tracker/image_crop.py @@ -7,6 +7,7 @@ See LICENSE for license details. ---------------------------------------------------------------------------~(*) """ + import typing as T import cv2 diff --git a/src/surface_tracker/location.py b/src/surface_tracker/location.py index ef6c9eb..a3c105e 100644 --- a/src/surface_tracker/location.py +++ b/src/surface_tracker/location.py @@ -7,6 +7,7 @@ See LICENSE for license details. ---------------------------------------------------------------------------~(*) """ + import abc import logging import typing as T diff --git a/src/surface_tracker/marker.py b/src/surface_tracker/marker.py index 63886d9..96652cf 100644 --- a/src/surface_tracker/marker.py +++ b/src/surface_tracker/marker.py @@ -7,6 +7,7 @@ See LICENSE for license details. ---------------------------------------------------------------------------~(*) """ + import abc import typing as T diff --git a/src/surface_tracker/orientation.py b/src/surface_tracker/orientation.py index 7cf5429..5db6491 100644 --- a/src/surface_tracker/orientation.py +++ b/src/surface_tracker/orientation.py @@ -7,6 +7,7 @@ See LICENSE for license details. ---------------------------------------------------------------------------~(*) """ + from .corner import CornerId diff --git a/src/surface_tracker/surface.py b/src/surface_tracker/surface.py index e5effc6..e7880e7 100644 --- a/src/surface_tracker/surface.py +++ b/src/surface_tracker/surface.py @@ -7,6 +7,7 @@ See LICENSE for license details. ---------------------------------------------------------------------------~(*) """ + import abc import collections import logging diff --git a/src/surface_tracker/tracker.py b/src/surface_tracker/tracker.py index 5339339..b84516f 100644 --- a/src/surface_tracker/tracker.py +++ b/src/surface_tracker/tracker.py @@ -7,6 +7,7 @@ See LICENSE for license details. ---------------------------------------------------------------------------~(*) """ + import logging import typing as T diff --git a/src/surface_tracker/visual_anchors.py b/src/surface_tracker/visual_anchors.py index 1730388..85fe0f5 100644 --- a/src/surface_tracker/visual_anchors.py +++ b/src/surface_tracker/visual_anchors.py @@ -7,6 +7,7 @@ See LICENSE for license details. ---------------------------------------------------------------------------~(*) """ + import typing as T import numpy as np diff --git a/tests/unit/test_corner.py b/tests/unit/test_corner.py index 6073f7d..ed2863a 100644 --- a/tests/unit/test_corner.py +++ b/tests/unit/test_corner.py @@ -7,6 +7,7 @@ See LICENSE for license details. ---------------------------------------------------------------------------~(*) """ + import pytest from surface_tracker.corner import CornerId diff --git a/tests/unit/test_package.py b/tests/unit/test_package.py index 44f79d4..4c4e797 100644 --- a/tests/unit/test_package.py +++ b/tests/unit/test_package.py @@ -7,6 +7,7 @@ See LICENSE for license details. ---------------------------------------------------------------------------~(*) """ + import pytest diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index e29e85e..3854e4b 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -7,6 +7,7 @@ See LICENSE for license details. ---------------------------------------------------------------------------~(*) """ + import pytest from surface_tracker.utils import left_rotation, right_rotation diff --git a/update_license_header.py b/update_license_header.py index ffafaf6..946037f 100644 --- a/update_license_header.py +++ b/update_license_header.py @@ -7,6 +7,7 @@ See LICENSE for license details. ---------------------------------------------------------------------------~(*) """ + import fnmatch import os import re