From 0b08abf4241826561420d3b7ad301dfa64e2a90a Mon Sep 17 00:00:00 2001 From: Ziga Luksic Date: Tue, 7 Nov 2023 09:13:40 +0100 Subject: [PATCH 1/3] increase version --- eolearn/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eolearn/__init__.py b/eolearn/__init__.py index 5c4a15d8..be83bd73 100644 --- a/eolearn/__init__.py +++ b/eolearn/__init__.py @@ -1,5 +1,5 @@ """Main module of the `eolearn` package.""" -__version__ = "1.5.1" +__version__ = "1.5.2" import importlib.util import warnings From 89f6ac8a770421c7dc61d3d569240ed15c3332f9 Mon Sep 17 00:00:00 2001 From: Ziga Luksic Date: Tue, 7 Nov 2023 09:18:15 +0100 Subject: [PATCH 2/3] update changelog --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 06d84471..e93f75a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [Version 1.5.2] - 2023-11-07 + +- `RayExecutor` can now forward remote kwargs to ray jobs. +- `ImportTiffTask` no longer uses the `use_vsi` parameter. The IO part was fully off-loaded to `rasterio`. +- `ImportTiffTask` and `ExportTiffTask` parameter `folder` was renamed to `path`. The renaming is backwards compatible for now. + + ## [Version 1.5.1] - 2023-10-17 - `MorphologicalFilterTask` adapted to work on boolean values. From e192e0722733fc4e20651f587530a5e1c435046b Mon Sep 17 00:00:00 2001 From: Ziga Luksic Date: Tue, 7 Nov 2023 09:19:33 +0100 Subject: [PATCH 3/3] update pre-commit hooks --- .pre-commit-config.yaml | 4 ++-- eolearn/__init__.py | 1 + eolearn/core/__init__.py | 1 + eolearn/core/constants.py | 1 + eolearn/core/core_tasks.py | 1 + eolearn/core/eodata.py | 1 + eolearn/core/eodata_io.py | 1 + eolearn/core/eodata_merge.py | 1 + eolearn/core/eoexecution.py | 1 + eolearn/core/eonode.py | 1 + eolearn/core/eotask.py | 1 + eolearn/core/eoworkflow.py | 1 + eolearn/core/eoworkflow_tasks.py | 1 + eolearn/core/exceptions.py | 1 + eolearn/core/extra/ray.py | 1 + eolearn/core/graph.py | 1 + eolearn/core/types.py | 1 + eolearn/core/utils/common.py | 1 + eolearn/core/utils/fs.py | 1 + eolearn/core/utils/parallelize.py | 1 + eolearn/core/utils/parsing.py | 1 + eolearn/core/utils/raster.py | 1 + eolearn/core/utils/testing.py | 1 + eolearn/core/utils/types.py | 1 + eolearn/coregistration/coregistration.py | 1 + eolearn/features/extra/clustering.py | 1 + eolearn/features/extra/interpolation.py | 1 + eolearn/features/feature_manipulation.py | 1 + eolearn/features/ndi.py | 1 + eolearn/features/utils.py | 1 + eolearn/geometry/morphology.py | 1 + eolearn/geometry/transformations.py | 1 + eolearn/io/raster_io.py | 1 + eolearn/io/sentinelhub_process.py | 1 + eolearn/mask/extra/cloud_mask.py | 1 + eolearn/mask/masking.py | 1 + eolearn/mask/snow_mask.py | 1 + eolearn/ml_tools/sampling.py | 1 + eolearn/visualization/eoexecutor.py | 1 + eolearn/visualization/eopatch.py | 1 + eolearn/visualization/eoworkflow.py | 1 + install_all.py | 1 + tests/core/conftest.py | 1 + tests/core/test_constants.py | 1 + tests/core/test_eodata.py | 1 + tests/core/test_eodata_io.py | 1 + tests/core/test_eodata_merge.py | 1 + tests/core/test_eoexecutor.py | 1 + tests/core/test_eonode.py | 1 + tests/core/test_eotask.py | 1 + tests/core/test_eoworkflow.py | 1 + tests/core/test_eoworkflow_tasks.py | 1 + tests/core/test_extra/test_ray.py | 1 + tests/core/test_graph.py | 1 + tests/core/test_utils/test_common.py | 1 + tests/core/test_utils/test_fs.py | 1 + tests/core/test_utils/test_parallelize.py | 1 + tests/core/test_utils/test_raster.py | 1 + tests/coregistration/conftest.py | 1 + tests/coregistration/test_coregistration.py | 1 + tests/features/conftest.py | 1 + tests/features/extra/test_clustering.py | 1 + tests/features/extra/test_interpolation.py | 1 + tests/features/test_bands_extraction.py | 1 + tests/geometry/conftest.py | 1 + tests/geometry/test_morphology.py | 1 + tests/geometry/test_transformations.py | 1 + tests/io/conftest.py | 1 + tests/io/test_geometry_io.py | 1 + tests/io/test_raster_io.py | 1 + tests/io/test_sentinelhub_process.py | 1 + tests/mask/conftest.py | 1 + tests/mask/extra/test_cloud_mask.py | 1 + tests/mask/test_masking.py | 1 + tests/mask/test_snow_mask.py | 1 + tests/ml_tools/conftest.py | 1 + tests/ml_tools/test_sampling.py | 1 + tests/visualization/test_eoexecutor.py | 1 + tests/visualization/test_eopatch.py | 1 + tests/visualization/test_eoworkflow.py | 1 + 80 files changed, 81 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a2cc0ecf..14a6b970 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,13 +13,13 @@ repos: - id: debug-statements - repo: https://github.com/psf/black - rev: 23.9.1 + rev: 23.10.1 hooks: - id: black language_version: python3 - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: "v0.0.292" + rev: "v0.1.4" hooks: - id: ruff diff --git a/eolearn/__init__.py b/eolearn/__init__.py index be83bd73..3e77f3bb 100644 --- a/eolearn/__init__.py +++ b/eolearn/__init__.py @@ -1,4 +1,5 @@ """Main module of the `eolearn` package.""" + __version__ = "1.5.2" import importlib.util diff --git a/eolearn/core/__init__.py b/eolearn/core/__init__.py index 766dc951..8d80dc25 100644 --- a/eolearn/core/__init__.py +++ b/eolearn/core/__init__.py @@ -1,6 +1,7 @@ """ The following objects and functions are the core of eo-learn package """ + from .constants import FeatureType, OverwritePermission from .core_tasks import ( AddFeatureTask, diff --git a/eolearn/core/constants.py b/eolearn/core/constants.py index 85132d27..d661732f 100644 --- a/eolearn/core/constants.py +++ b/eolearn/core/constants.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import warnings diff --git a/eolearn/core/core_tasks.py b/eolearn/core/core_tasks.py index 31b9f953..8ae4823b 100644 --- a/eolearn/core/core_tasks.py +++ b/eolearn/core/core_tasks.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import copy diff --git a/eolearn/core/eodata.py b/eolearn/core/eodata.py index 93660204..c275a997 100644 --- a/eolearn/core/eodata.py +++ b/eolearn/core/eodata.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import concurrent.futures diff --git a/eolearn/core/eodata_io.py b/eolearn/core/eodata_io.py index a0e980a8..561aef91 100644 --- a/eolearn/core/eodata_io.py +++ b/eolearn/core/eodata_io.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import concurrent.futures diff --git a/eolearn/core/eodata_merge.py b/eolearn/core/eodata_merge.py index d1ca8266..37a9ff5c 100644 --- a/eolearn/core/eodata_merge.py +++ b/eolearn/core/eodata_merge.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import datetime as dt diff --git a/eolearn/core/eoexecution.py b/eolearn/core/eoexecution.py index 23051692..59e35c16 100644 --- a/eolearn/core/eoexecution.py +++ b/eolearn/core/eoexecution.py @@ -10,6 +10,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import concurrent.futures diff --git a/eolearn/core/eonode.py b/eolearn/core/eonode.py index c0f07b84..0c0c752f 100644 --- a/eolearn/core/eonode.py +++ b/eolearn/core/eonode.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import datetime as dt diff --git a/eolearn/core/eotask.py b/eolearn/core/eotask.py index 2548c33e..6910b261 100644 --- a/eolearn/core/eotask.py +++ b/eolearn/core/eotask.py @@ -11,6 +11,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import inspect diff --git a/eolearn/core/eoworkflow.py b/eolearn/core/eoworkflow.py index 37c58fa3..0f437482 100644 --- a/eolearn/core/eoworkflow.py +++ b/eolearn/core/eoworkflow.py @@ -17,6 +17,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import datetime as dt diff --git a/eolearn/core/eoworkflow_tasks.py b/eolearn/core/eoworkflow_tasks.py index 0fcd91d7..602b06db 100644 --- a/eolearn/core/eoworkflow_tasks.py +++ b/eolearn/core/eoworkflow_tasks.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations from .eodata import EOPatch diff --git a/eolearn/core/exceptions.py b/eolearn/core/exceptions.py index 76bf58c7..01e1a4c1 100644 --- a/eolearn/core/exceptions.py +++ b/eolearn/core/exceptions.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import warnings diff --git a/eolearn/core/extra/ray.py b/eolearn/core/extra/ray.py index 4ea10cca..1251a4f2 100644 --- a/eolearn/core/extra/ray.py +++ b/eolearn/core/extra/ray.py @@ -8,6 +8,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations from logging import FileHandler, Filter diff --git a/eolearn/core/graph.py b/eolearn/core/graph.py index 2ede7965..32ac1d6d 100644 --- a/eolearn/core/graph.py +++ b/eolearn/core/graph.py @@ -7,6 +7,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import collections diff --git a/eolearn/core/types.py b/eolearn/core/types.py index 121ab251..3b417e2e 100644 --- a/eolearn/core/types.py +++ b/eolearn/core/types.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import sys diff --git a/eolearn/core/utils/common.py b/eolearn/core/utils/common.py index a1c5578a..eaee5a68 100644 --- a/eolearn/core/utils/common.py +++ b/eolearn/core/utils/common.py @@ -7,6 +7,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import uuid diff --git a/eolearn/core/utils/fs.py b/eolearn/core/utils/fs.py index 9bec77fe..01dfead2 100644 --- a/eolearn/core/utils/fs.py +++ b/eolearn/core/utils/fs.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import copy diff --git a/eolearn/core/utils/parallelize.py b/eolearn/core/utils/parallelize.py index 4fb454e7..1577bab1 100644 --- a/eolearn/core/utils/parallelize.py +++ b/eolearn/core/utils/parallelize.py @@ -7,6 +7,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import concurrent.futures diff --git a/eolearn/core/utils/parsing.py b/eolearn/core/utils/parsing.py index 9f2637c4..632745e1 100644 --- a/eolearn/core/utils/parsing.py +++ b/eolearn/core/utils/parsing.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import contextlib diff --git a/eolearn/core/utils/raster.py b/eolearn/core/utils/raster.py index f1d839c2..c7abfe1f 100644 --- a/eolearn/core/utils/raster.py +++ b/eolearn/core/utils/raster.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations from typing import Literal diff --git a/eolearn/core/utils/testing.py b/eolearn/core/utils/testing.py index 340267cb..e09fe221 100644 --- a/eolearn/core/utils/testing.py +++ b/eolearn/core/utils/testing.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import datetime as dt diff --git a/eolearn/core/utils/types.py b/eolearn/core/utils/types.py index dff3051c..5d8f7486 100644 --- a/eolearn/core/utils/types.py +++ b/eolearn/core/utils/types.py @@ -1,4 +1,5 @@ """Deprecated module for types, moved to `eolearn.core.types`.""" + from __future__ import annotations from warnings import warn diff --git a/eolearn/coregistration/coregistration.py b/eolearn/coregistration/coregistration.py index ffa876a2..3b0f886a 100644 --- a/eolearn/coregistration/coregistration.py +++ b/eolearn/coregistration/coregistration.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import logging diff --git a/eolearn/features/extra/clustering.py b/eolearn/features/extra/clustering.py index 443ff3e5..049d2eca 100644 --- a/eolearn/features/extra/clustering.py +++ b/eolearn/features/extra/clustering.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations from typing import Callable, Literal diff --git a/eolearn/features/extra/interpolation.py b/eolearn/features/extra/interpolation.py index d11c81de..2e853a78 100644 --- a/eolearn/features/extra/interpolation.py +++ b/eolearn/features/extra/interpolation.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import datetime as dt diff --git a/eolearn/features/feature_manipulation.py b/eolearn/features/feature_manipulation.py index 8b69904e..b492a45b 100644 --- a/eolearn/features/feature_manipulation.py +++ b/eolearn/features/feature_manipulation.py @@ -7,6 +7,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import datetime as dt diff --git a/eolearn/features/ndi.py b/eolearn/features/ndi.py index 76b19227..8a990a02 100644 --- a/eolearn/features/ndi.py +++ b/eolearn/features/ndi.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import numpy as np diff --git a/eolearn/features/utils.py b/eolearn/features/utils.py index 35c4636f..94ad5c5d 100644 --- a/eolearn/features/utils.py +++ b/eolearn/features/utils.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import warnings diff --git a/eolearn/geometry/morphology.py b/eolearn/geometry/morphology.py index b4ee86b9..aa8442ae 100644 --- a/eolearn/geometry/morphology.py +++ b/eolearn/geometry/morphology.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import itertools as it diff --git a/eolearn/geometry/transformations.py b/eolearn/geometry/transformations.py index b7fe5427..669488f8 100644 --- a/eolearn/geometry/transformations.py +++ b/eolearn/geometry/transformations.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import datetime as dt diff --git a/eolearn/io/raster_io.py b/eolearn/io/raster_io.py index db2fdc33..3f2abd45 100644 --- a/eolearn/io/raster_io.py +++ b/eolearn/io/raster_io.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import datetime as dt diff --git a/eolearn/io/sentinelhub_process.py b/eolearn/io/sentinelhub_process.py index 64f55c0c..950061d8 100644 --- a/eolearn/io/sentinelhub_process.py +++ b/eolearn/io/sentinelhub_process.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import datetime as dt diff --git a/eolearn/mask/extra/cloud_mask.py b/eolearn/mask/extra/cloud_mask.py index 739920fa..d2f2ac75 100644 --- a/eolearn/mask/extra/cloud_mask.py +++ b/eolearn/mask/extra/cloud_mask.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import logging diff --git a/eolearn/mask/masking.py b/eolearn/mask/masking.py index 1a461586..757aa618 100644 --- a/eolearn/mask/masking.py +++ b/eolearn/mask/masking.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations from typing import Callable, Iterable, Literal diff --git a/eolearn/mask/snow_mask.py b/eolearn/mask/snow_mask.py index 598d3bed..239cea65 100644 --- a/eolearn/mask/snow_mask.py +++ b/eolearn/mask/snow_mask.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import logging diff --git a/eolearn/ml_tools/sampling.py b/eolearn/ml_tools/sampling.py index 92e55efe..66c2618a 100644 --- a/eolearn/ml_tools/sampling.py +++ b/eolearn/ml_tools/sampling.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations from abc import ABCMeta diff --git a/eolearn/visualization/eoexecutor.py b/eolearn/visualization/eoexecutor.py index 45d0dade..99d413eb 100644 --- a/eolearn/visualization/eoexecutor.py +++ b/eolearn/visualization/eoexecutor.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import base64 diff --git a/eolearn/visualization/eopatch.py b/eolearn/visualization/eopatch.py index 7407e786..47142154 100644 --- a/eolearn/visualization/eopatch.py +++ b/eolearn/visualization/eopatch.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import datetime as dt diff --git a/eolearn/visualization/eoworkflow.py b/eolearn/visualization/eoworkflow.py index fb40fd39..325ed44c 100644 --- a/eolearn/visualization/eoworkflow.py +++ b/eolearn/visualization/eoworkflow.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations from typing import Sequence diff --git a/install_all.py b/install_all.py index df31d6bc..e779fc6d 100644 --- a/install_all.py +++ b/install_all.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import subprocess diff --git a/tests/core/conftest.py b/tests/core/conftest.py index d9287dee..62179c9b 100644 --- a/tests/core/conftest.py +++ b/tests/core/conftest.py @@ -6,6 +6,7 @@ For the full list of contributors, see the CREDITS file in the root directory of this source tree. This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import os diff --git a/tests/core/test_constants.py b/tests/core/test_constants.py index 3e7336af..8b6b33f8 100644 --- a/tests/core/test_constants.py +++ b/tests/core/test_constants.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import warnings diff --git a/tests/core/test_eodata.py b/tests/core/test_eodata.py index d16c7979..db749a67 100644 --- a/tests/core/test_eodata.py +++ b/tests/core/test_eodata.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import datetime as dt diff --git a/tests/core/test_eodata_io.py b/tests/core/test_eodata_io.py index bfb56bfe..efdd03c9 100644 --- a/tests/core/test_eodata_io.py +++ b/tests/core/test_eodata_io.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import datetime diff --git a/tests/core/test_eodata_merge.py b/tests/core/test_eodata_merge.py index 4ce7bd3d..cf14c185 100644 --- a/tests/core/test_eodata_merge.py +++ b/tests/core/test_eodata_merge.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import datetime as dt diff --git a/tests/core/test_eoexecutor.py b/tests/core/test_eoexecutor.py index 87512771..5eb91e45 100644 --- a/tests/core/test_eoexecutor.py +++ b/tests/core/test_eoexecutor.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import concurrent.futures diff --git a/tests/core/test_eonode.py b/tests/core/test_eonode.py index a7a214cf..0f4e7ec1 100644 --- a/tests/core/test_eonode.py +++ b/tests/core/test_eonode.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations from eolearn.core import EONode, EOTask, OutputTask, linearly_connect_tasks diff --git a/tests/core/test_eotask.py b/tests/core/test_eotask.py index 725126c0..213c641f 100644 --- a/tests/core/test_eotask.py +++ b/tests/core/test_eotask.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations from eolearn.core import EOTask diff --git a/tests/core/test_eoworkflow.py b/tests/core/test_eoworkflow.py index 7c14d794..d48911ca 100644 --- a/tests/core/test_eoworkflow.py +++ b/tests/core/test_eoworkflow.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import concurrent.futures diff --git a/tests/core/test_eoworkflow_tasks.py b/tests/core/test_eoworkflow_tasks.py index c81c1bfd..47f10e57 100644 --- a/tests/core/test_eoworkflow_tasks.py +++ b/tests/core/test_eoworkflow_tasks.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations from eolearn.core import EONode, EOTask, EOWorkflow, FeatureType, LoadTask, OutputTask diff --git a/tests/core/test_extra/test_ray.py b/tests/core/test_extra/test_ray.py index 02d721db..a302a11a 100644 --- a/tests/core/test_extra/test_ray.py +++ b/tests/core/test_extra/test_ray.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import datetime diff --git a/tests/core/test_graph.py b/tests/core/test_graph.py index bf408ff2..aabdaed2 100644 --- a/tests/core/test_graph.py +++ b/tests/core/test_graph.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import functools diff --git a/tests/core/test_utils/test_common.py b/tests/core/test_utils/test_common.py index 60442b77..1f878d52 100644 --- a/tests/core/test_utils/test_common.py +++ b/tests/core/test_utils/test_common.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import dataclasses diff --git a/tests/core/test_utils/test_fs.py b/tests/core/test_utils/test_fs.py index 76028c90..a2622462 100644 --- a/tests/core/test_utils/test_fs.py +++ b/tests/core/test_utils/test_fs.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import json diff --git a/tests/core/test_utils/test_parallelize.py b/tests/core/test_utils/test_parallelize.py index 06ccb0bd..98f3bfff 100644 --- a/tests/core/test_utils/test_parallelize.py +++ b/tests/core/test_utils/test_parallelize.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import itertools as it diff --git a/tests/core/test_utils/test_raster.py b/tests/core/test_utils/test_raster.py index 95a312f0..164b1d52 100644 --- a/tests/core/test_utils/test_raster.py +++ b/tests/core/test_utils/test_raster.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations from typing import Literal diff --git a/tests/coregistration/conftest.py b/tests/coregistration/conftest.py index b40eff87..3836bef8 100644 --- a/tests/coregistration/conftest.py +++ b/tests/coregistration/conftest.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import os diff --git a/tests/coregistration/test_coregistration.py b/tests/coregistration/test_coregistration.py index 3e9c423e..85fc214e 100644 --- a/tests/coregistration/test_coregistration.py +++ b/tests/coregistration/test_coregistration.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import logging diff --git a/tests/features/conftest.py b/tests/features/conftest.py index 8959c6b1..10cf2553 100644 --- a/tests/features/conftest.py +++ b/tests/features/conftest.py @@ -6,6 +6,7 @@ For the full list of contributors, see the CREDITS file in the root directory of this source tree. This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import os diff --git a/tests/features/extra/test_clustering.py b/tests/features/extra/test_clustering.py index 80b3707b..a869cc3b 100644 --- a/tests/features/extra/test_clustering.py +++ b/tests/features/extra/test_clustering.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import logging diff --git a/tests/features/extra/test_interpolation.py b/tests/features/extra/test_interpolation.py index f563b993..5142278f 100644 --- a/tests/features/extra/test_interpolation.py +++ b/tests/features/extra/test_interpolation.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import dataclasses diff --git a/tests/features/test_bands_extraction.py b/tests/features/test_bands_extraction.py index 31489c20..1beeea2f 100644 --- a/tests/features/test_bands_extraction.py +++ b/tests/features/test_bands_extraction.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import numpy as np diff --git a/tests/geometry/conftest.py b/tests/geometry/conftest.py index 95de2466..3f23c8d7 100644 --- a/tests/geometry/conftest.py +++ b/tests/geometry/conftest.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import os diff --git a/tests/geometry/test_morphology.py b/tests/geometry/test_morphology.py index f4d69d7a..5eab9def 100644 --- a/tests/geometry/test_morphology.py +++ b/tests/geometry/test_morphology.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import numpy as np diff --git a/tests/geometry/test_transformations.py b/tests/geometry/test_transformations.py index 7b3dbaed..8b1204a8 100644 --- a/tests/geometry/test_transformations.py +++ b/tests/geometry/test_transformations.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import dataclasses diff --git a/tests/io/conftest.py b/tests/io/conftest.py index 1ef98753..3383d160 100644 --- a/tests/io/conftest.py +++ b/tests/io/conftest.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import os diff --git a/tests/io/test_geometry_io.py b/tests/io/test_geometry_io.py index 1a63c1be..fcead1ac 100644 --- a/tests/io/test_geometry_io.py +++ b/tests/io/test_geometry_io.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import pytest diff --git a/tests/io/test_raster_io.py b/tests/io/test_raster_io.py index 18235959..0e816932 100644 --- a/tests/io/test_raster_io.py +++ b/tests/io/test_raster_io.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import copy diff --git a/tests/io/test_sentinelhub_process.py b/tests/io/test_sentinelhub_process.py index d2b96c5e..d0d00cd7 100644 --- a/tests/io/test_sentinelhub_process.py +++ b/tests/io/test_sentinelhub_process.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import dataclasses diff --git a/tests/mask/conftest.py b/tests/mask/conftest.py index d8280544..4e30cc65 100644 --- a/tests/mask/conftest.py +++ b/tests/mask/conftest.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import os diff --git a/tests/mask/extra/test_cloud_mask.py b/tests/mask/extra/test_cloud_mask.py index da11a6f6..fef61bfc 100644 --- a/tests/mask/extra/test_cloud_mask.py +++ b/tests/mask/extra/test_cloud_mask.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations from numpy.testing import assert_array_equal diff --git a/tests/mask/test_masking.py b/tests/mask/test_masking.py index b015491f..4db2c3ff 100644 --- a/tests/mask/test_masking.py +++ b/tests/mask/test_masking.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import numpy as np diff --git a/tests/mask/test_snow_mask.py b/tests/mask/test_snow_mask.py index 1bbd9706..ab7e1724 100644 --- a/tests/mask/test_snow_mask.py +++ b/tests/mask/test_snow_mask.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import numpy as np diff --git a/tests/ml_tools/conftest.py b/tests/ml_tools/conftest.py index 92513cf0..9a64c7fa 100644 --- a/tests/ml_tools/conftest.py +++ b/tests/ml_tools/conftest.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import os diff --git a/tests/ml_tools/test_sampling.py b/tests/ml_tools/test_sampling.py index 090239f5..262baec4 100644 --- a/tests/ml_tools/test_sampling.py +++ b/tests/ml_tools/test_sampling.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import copy diff --git a/tests/visualization/test_eoexecutor.py b/tests/visualization/test_eoexecutor.py index b48f81fa..c56191ba 100644 --- a/tests/visualization/test_eoexecutor.py +++ b/tests/visualization/test_eoexecutor.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import logging diff --git a/tests/visualization/test_eopatch.py b/tests/visualization/test_eopatch.py index 8ac826ac..ee0dbad7 100644 --- a/tests/visualization/test_eopatch.py +++ b/tests/visualization/test_eopatch.py @@ -6,6 +6,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import os diff --git a/tests/visualization/test_eoworkflow.py b/tests/visualization/test_eoworkflow.py index 351463d2..ef1b0743 100644 --- a/tests/visualization/test_eoworkflow.py +++ b/tests/visualization/test_eoworkflow.py @@ -4,6 +4,7 @@ This source code is licensed under the MIT license, see the LICENSE file in the root directory of this source tree. """ + from __future__ import annotations import pytest