From 133fab09df11d80505871670469da6a45104bb6b Mon Sep 17 00:00:00 2001 From: Bill Little Date: Tue, 21 Nov 2023 00:49:32 +0000 Subject: [PATCH 1/2] ruff isort required imports --- pyproject.toml | 1 + tests/plotting/test_examples.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 0f202839..e3d899c9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -132,6 +132,7 @@ select = [ [tool.ruff.lint.isort] force-sort-within-sections = true known-first-party = ["geovista"] +required-imports = ["from __future__ import annotations"] [tool.ruff.lint.mccabe] diff --git a/tests/plotting/test_examples.py b/tests/plotting/test_examples.py index 317a1f58..839ab108 100644 --- a/tests/plotting/test_examples.py +++ b/tests/plotting/test_examples.py @@ -1,4 +1,6 @@ """Unit-tests for :mod:`geovista.examples`.""" +from __future__ import annotations + import importlib import os from pathlib import Path From 20caa49f755ebabc3ee55c3bcb50daa123a15507 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 21 Nov 2023 00:52:01 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d63367fa..da0fbd21 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ #!/usr/bin/env python """geovista setuptools packaging.""" - +from __future__ import annotations from setuptools import setup