From bbfe0eae31f450bd4f72bad5cdbaf12cb07cebc4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Jun 2024 21:57:02 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- setup.cfg | 2 +- setup.py | 1 + src/surface_tracker/__init__.py | 1 + src/surface_tracker/coordinate_space.py | 1 + src/surface_tracker/corner.py | 1 + src/surface_tracker/heatmap.py | 1 + src/surface_tracker/image_crop.py | 1 + src/surface_tracker/location.py | 1 + src/surface_tracker/marker.py | 1 + src/surface_tracker/orientation.py | 1 + src/surface_tracker/surface.py | 1 + src/surface_tracker/tracker.py | 1 + src/surface_tracker/visual_anchors.py | 1 + tests/unit/test_corner.py | 1 + tests/unit/test_package.py | 1 + tests/unit/test_utils.py | 1 + update_license_header.py | 1 + 17 files changed, 17 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 30c63a5..f079e61 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,7 +8,7 @@ url = https://github.com/pupil-labs/surface-tracker author = Pupil Labs GmbH author_email = pypi@pupil-labs.com license = LGPL-3.0 -license_file = LICENSE +license_files = LICENSE classifiers = Development Status :: 5 - Production/Stable Intended Audience :: Developers 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