Skip to content

Commit e757999

Browse files
authored
Prepare for release (#484)
* update pre-commit * update version * satisfy linters * update changelog * update changelog * update read-the-docs configuration
1 parent e4f9a31 commit e757999

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+101
-36
lines changed

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.4.0
3+
rev: v4.5.0
44
hooks:
55
- id: end-of-file-fixer
66
- id: requirements-txt-fixer
@@ -13,13 +13,13 @@ repos:
1313
- id: debug-statements
1414

1515
- repo: https://github.com/psf/black
16-
rev: 23.7.0
16+
rev: 23.10.1
1717
hooks:
1818
- id: black
1919
language_version: python3
2020

2121
- repo: https://github.com/charliermarsh/ruff-pre-commit
22-
rev: "v0.0.282"
22+
rev: "v0.1.1"
2323
hooks:
2424
- id: ruff
2525

.readthedocs.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
version: 2
22

3+
build:
4+
os: ubuntu-22.04
5+
tools:
6+
python: "3.11"
7+
38
sphinx:
49
configuration: docs/source/conf.py
510

611
python:
7-
version: 3.8
812
install:
9-
- method: pip
10-
path: .
11-
extra_requirements:
12-
- docs
13+
- method: pip
14+
path: .
15+
extra_requirements:
16+
- docs

CHANGELOG.MD

+7

examples/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Utilities used by example notebooks
33
"""
4+
45
from __future__ import annotations
56

67
from typing import Any

sentinelhub/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Version of the sentinelhub package."""
22

3-
__version__ = "3.9.1"
3+
__version__ = "3.9.2"

sentinelhub/api/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
The part of the package that implements interface with Sentinel Hub services.
33
"""
4+
45
from .batch import (
56
BatchCollection,
67
BatchRequest,

sentinelhub/api/base.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module implementing some utility functions not suitable for other utility modules
33
"""
4+
45
# ruff: noqa: FA100
56
# do not use `from __future__ import annotations`, it clashes with `dataclass_json`
67
from abc import ABCMeta, abstractmethod

sentinelhub/api/base_request.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Implementation of base Sentinel Hub interfaces
33
"""
4+
45
from __future__ import annotations
56

67
from abc import ABCMeta, abstractmethod

sentinelhub/api/batch/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
The part of the package that implements interface with Sentinel Hub services.
33
"""
4+
45
from .base import BatchRequestStatus, BatchUserAction
56
from .process import BatchCollection, BatchRequest, BatchTileStatus, SentinelHubBatch
67
from .statistical import BatchStatisticalRequest, SentinelHubBatchStatistical

sentinelhub/api/batch/base.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module containing shared code of Batch Process API and Batch Statistical API
33
"""
4+
45
# ruff: noqa: FA100
56
# do not use `from __future__ import annotations`, it clashes with `dataclass_json` (even through inheritance)
67
from abc import ABCMeta

sentinelhub/api/batch/process.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Module implementing an interface with
33
`Sentinel Hub Batch Processing API <https://docs.sentinel-hub.com/api/latest/api/batch/>`__.
44
"""
5+
56
# ruff: noqa: FA100
67
# do not use `from __future__ import annotations`, it clashes with `dataclass_json`
78
import datetime as dt

sentinelhub/api/batch/statistical.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Module implementing an interface with
33
`Sentinel Hub Batch Processing API <https://docs.sentinel-hub.com/api/latest/api/batch-statistical/>`__.
44
"""
5+
56
# ruff: noqa: FA100
67
# do not use `from __future__ import annotations`, it clashes with `dataclass_json`
78
import datetime as dt

sentinelhub/api/batch/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module implementing utilities for working with batch jobs.
33
"""
4+
45
from __future__ import annotations
56

67
import logging

sentinelhub/api/byoc.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Module implementing an interface with
33
`Sentinel Hub Bring Your Own COG API <https://docs.sentinel-hub.com/api/latest/api/byoc/>`__.
44
"""
5+
56
# ruff: noqa: FA100
67
# do not use `from __future__ import annotations`, it clashes with `dataclass_json`
78
from dataclasses import dataclass, field

sentinelhub/api/catalog.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
A client interface for `Sentinel Hub Catalog API <https://docs.sentinel-hub.com/api/latest/api/catalog>`__.
33
"""
4+
45
from __future__ import annotations
56

67
import datetime as dt

sentinelhub/api/fis.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module for working with Sentinel Hub FIS service
33
"""
4+
45
from __future__ import annotations
56

67
import datetime

sentinelhub/api/ogc.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Module for working with Sentinel Hub OGC services
33
`Sentinel Hub OGC services <https://www.sentinel-hub.com/develop/api/ogc/standard-parameters/>`__.
44
"""
5+
56
from __future__ import annotations
67

78
import datetime

sentinelhub/api/opensearch.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
For more search parameters check
55
`service description <http://opensearch.sentinel-hub.com/resto/api/collections/Sentinel2/describe.xml>`__.
66
"""
7+
78
from __future__ import annotations
89

910
import datetime as dt

sentinelhub/api/process.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Implementation of `Sentinel Hub Process API interface <https://docs.sentinel-hub.com/api/latest/api/process/>`__.
33
"""
4+
45
from __future__ import annotations
56

67
from typing import Any, Iterable

sentinelhub/api/statistical.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Implementation of
33
`Sentinel Hub Statistical API interface <https://docs.sentinel-hub.com/api/latest/api/statistical/>`__.
44
"""
5+
56
from __future__ import annotations
67

78
from typing import Any, Sequence

sentinelhub/api/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module implementing some common utility functions
33
"""
4+
45
# ruff: noqa: FA100
56
# do not use `from __future__ import annotations`, it clashes with `dataclass_json`
67
from enum import Enum

sentinelhub/api/wfs.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Interface of
33
`Sentinel Hub Web Feature Service (WFS) <https://www.sentinel-hub.com/develop/api/ogc/standard-parameters/wfs/>`__.
44
"""
5+
56
from __future__ import annotations
67

78
import datetime as dt

sentinelhub/areas.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module for working with large geographical areas
33
"""
4+
45
from __future__ import annotations
56

67
import itertools

sentinelhub/aws/batch.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module implementing utilities for collecting data, produced with Sentinel Hub Statistical Batch API, from an S3 bucket.
33
"""
4+
45
from typing import List, Optional, Sequence, Union
56

67
from ..api.batch.statistical import BatchStatisticalRequest, BatchStatisticalRequestType, SentinelHubBatchStatistical

sentinelhub/aws/client.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module implementing a download client that is adjusted to download from AWS
33
"""
4+
45
import logging
56
import warnings
67
from typing import Any, Dict, Optional

sentinelhub/aws/commands.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module that implements command line interface for AWS package functionalities
33
"""
4+
45
from typing import Optional, Tuple
56

67
import click

sentinelhub/aws/constants.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Constants related to AWS functionalities of the package
33
"""
4+
45
import itertools as it
56
from enum import Enum
67

sentinelhub/aws/request.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Data request interface for downloading satellite data from AWS
33
"""
4+
45
import functools
56
from abc import abstractmethod
67
from typing import Any, Generic, List, Optional, Tuple, TypeVar, Union

sentinelhub/base.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Implementation of base interface classes of this package.
33
"""
4+
45
from __future__ import annotations
56

67
import copy

sentinelhub/commands.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module that implements command line interface for the package
33
"""
4+
45
from __future__ import annotations
56

67
import json

sentinelhub/config.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module for managing configuration data from `config.toml`
33
"""
4+
45
from __future__ import annotations
56

67
import copy

sentinelhub/constants.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module defining constants and enumerate types used in the package
33
"""
4+
45
from __future__ import annotations
56

67
import functools
@@ -104,7 +105,7 @@ def _parse_crs(value: object) -> object: # noqa: C901
104105
if isinstance(value, dict) and "init" in value:
105106
value = value["init"]
106107
if hasattr(value, "to_epsg"):
107-
if value == CRSMeta._UNSUPPORTED_CRS: # noqa: SLF001
108+
if value == CRSMeta._UNSUPPORTED_CRS:
108109
message = (
109110
"sentinelhub-py supports only WGS 84 coordinate reference system with "
110111
"coordinate order lng-lat. Given pyproj.CRS(4326) has coordinate order lat-lng. Be careful "

sentinelhub/data_collections.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module defining data collections
33
"""
4+
45
from __future__ import annotations
56

67
from dataclasses import dataclass, field, fields

sentinelhub/data_collections_bands.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
""" Contains information about data collections used by SH """
2+
23
from __future__ import annotations
34

45
from dataclasses import dataclass

sentinelhub/data_utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module with statistics to dataframe transformation.
33
"""
4+
45
from __future__ import annotations
56

67
from typing import Any, Iterable

sentinelhub/decoding.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module for data decoding
33
"""
4+
45
from __future__ import annotations
56

67
import json

sentinelhub/download/client.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module implementing the main download client class
33
"""
4+
45
from __future__ import annotations
56

67
import json

sentinelhub/download/handlers.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module implementing error handlers which can occur during download procedure
33
"""
4+
45
from __future__ import annotations
56

67
import functools

sentinelhub/download/models.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module implementing model classes to store download-related parameters and data.
33
"""
4+
45
from __future__ import annotations
56

67
import datetime as dt

sentinelhub/download/rate_limit.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module implementing rate limiting logic for Sentinel Hub service
33
"""
4+
45
import time
56
from enum import Enum
67

sentinelhub/download/sentinelhub_client.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module implementing a rate-limited multithreaded download client for downloading from Sentinel Hub service
33
"""
4+
45
from __future__ import annotations
56

67
import logging

sentinelhub/download/sentinelhub_statistical_client.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Download process for Sentinel Hub Statistical API
33
"""
4+
45
from __future__ import annotations
56

67
import concurrent.futures

0 commit comments

Comments
 (0)