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/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 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