Skip to content

Commit

Permalink
Update version and precommit (#761)
Browse files Browse the repository at this point in the history
* increase version for minor release and update pre-commit

* adjust CHANGELOG
  • Loading branch information
zigaLuksic authored Oct 16, 2023
1 parent ed721ff commit 4b185cb
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: requirements-txt-fixer
Expand All @@ -13,13 +13,13 @@ repos:
- id: debug-statements

- repo: https://github.com/psf/black
rev: 23.7.0
rev: 23.9.1
hooks:
- id: black
language_version: python3

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.282"
rev: "v0.0.292"
hooks:
- id: ruff

Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [Version 1.5.1] - 2023-10-17

- `MorphologicalFilterTask` adapted to work on boolean values.
- Added `temporal_subset` method to `EOPatch`, which can be used to extract a subset of an `EOPatch` by filtering out temporal slices. Also added a corresponding `TemporalSubsetTask`.

## [Version 1.5.0] - 2023-09-06

The release focuses on making `eo-learn` much simpler to install, reducing the number of dependencies, and improving validation of soundness of `EOPatch` data.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
# When Sphinx documents class signature it prioritizes __new__ method over __init__ method. The following hack puts
# EOTask.__new__ method to the blacklist so that __init__ method signature will be taken instead. This seems the
# cleanest way even though a private object is accessed.
sphinx.ext.autodoc._CLASS_NEW_BLACKLIST.append("{0.__module__}.{0.__qualname__}".format(EOTask.__new__)) # noqa: SLF001
sphinx.ext.autodoc._CLASS_NEW_BLACKLIST.append(f"{EOTask.__module__}.{EOTask.__new__.__qualname__}") # noqa: SLF001


EXAMPLES_FOLDER = "./examples"
Expand Down
2 changes: 1 addition & 1 deletion eolearn/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Main module of the `eolearn` package."""
__version__ = "1.5.0"
__version__ = "1.5.1"

import importlib.util
import warnings
Expand Down
3 changes: 1 addition & 2 deletions eolearn/core/eoexecution.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
class _HandlerWithFsFactoryType(Protocol):
"""Type definition for a callable that accepts a path and a filesystem object"""

def __call__(self, path: str, filesystem: FS, **kwargs: Any) -> Handler:
...
def __call__(self, path: str, filesystem: FS, **kwargs: Any) -> Handler: ...


# pylint: disable=invalid-name
Expand Down
6 changes: 2 additions & 4 deletions eolearn/core/eoworkflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,10 @@ def get_nodes(self) -> list[EONode]:
return self._nodes[:]

@overload
def get_node_with_uid(self, uid: str, fail_if_missing: Literal[True] = ...) -> EONode:
...
def get_node_with_uid(self, uid: str, fail_if_missing: Literal[True] = ...) -> EONode: ...

@overload
def get_node_with_uid(self, uid: str, fail_if_missing: Literal[False] = ...) -> EONode | None:
...
def get_node_with_uid(self, uid: str, fail_if_missing: Literal[False] = ...) -> EONode | None: ...

def get_node_with_uid(self, uid: str, fail_if_missing: bool = False) -> EONode | None:
"""Returns node with give uid, if it exists in the workflow."""
Expand Down
2 changes: 1 addition & 1 deletion eolearn/core/extra/ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _get_processing_type(*_: Any, **__: Any) -> _ProcessingType:
def _ray_workflow_executor(workflow_args: _ProcessingData) -> WorkflowResults:
"""Called to execute a workflow on a ray worker"""
# pylint: disable=protected-access
return RayExecutor._execute_workflow(workflow_args)
return RayExecutor._execute_workflow(workflow_args) # noqa: SLF001


def parallelize_with_ray(
Expand Down

0 comments on commit 4b185cb

Please sign in to comment.