Skip to content

Commit

Permalink
release: v0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Apr 2, 2024
1 parent 2603182 commit 59733ca
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 deletions.
9 changes: 3 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 23.10.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
rev: v1.9.0
hooks:
- id: mypy
additional_dependencies:
Expand All @@ -16,6 +12,7 @@ repos:
- types-tabulate
- types-tqdm
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.1.1"
rev: "v0.3.5"
hooks:
- id: ruff
- id: ruff-format
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [0.2.4] - 2024-04-02

### Added

- `open_href` ([#123](https://github.com/stac-utils/stac-asset/pull/123))
Expand Down Expand Up @@ -115,7 +117,8 @@ Used to be <https://github.com/gadomski/stac-asset>.

Initial release.

[unreleased]: https://github.com/stac-utils/stac-asset/compare/v0.2.3...HEAD
[unreleased]: https://github.com/stac-utils/stac-asset/compare/v0.2.4...HEAD
[0.2.4]: https://github.com/stac-utils/stac-asset/compare/v0.2.3...v0.2.4
[0.2.3]: https://github.com/stac-utils/stac-asset/compare/v0.2.2...v0.2.3
[0.2.2]: https://github.com/stac-utils/stac-asset/compare/v0.2.1...v0.2.2
[0.2.1]: https://github.com/stac-utils/stac-asset/compare/v0.2.0...v0.2.1
Expand Down
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "stac-asset"
version = "0.2.3"
version = "0.2.4"
description = "Read and download STAC assets across platforms and providers"
authors = [{ name = "Pete Gadomski", email = "[email protected]" }]
readme = "README.md"
Expand Down Expand Up @@ -34,7 +34,6 @@ cli = [
"tqdm~=4.66.1",
]
dev = [
"black~=24.0",
"mypy~=1.3",
"pre-commit~=3.3",
"pystac[validation]>=1.8.4",
Expand Down Expand Up @@ -71,14 +70,14 @@ module = [
ignore_missing_imports = true


[tool.ruff]
[tool.ruff.lint]
select = ["F", "E", "W", "I", "ERA", "RUF", "D"]
ignore = ["D100", "D105", "D107"]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["D"]
"docs/conf.py" = ["D"]
"src/stac_asset/_cli.py" = ["D301"]

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "google"
1 change: 0 additions & 1 deletion src/stac_asset/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
unsupported, but is on the roadmap.
"""


from ._functions import (
assert_asset_exists,
asset_exists,
Expand Down
4 changes: 2 additions & 2 deletions src/stac_asset/_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ async def read_href(


def make_asset_hrefs_relative(
stac_object: Union[Item, Collection]
stac_object: Union[Item, Collection],
) -> Union[Item, Collection]:
# Copied from
# https://github.com/stac-utils/pystac/blob/381cf89fc25c15142fb5a187d905e22681de42a2/pystac/item.py#L284C5-L298C20
Expand All @@ -516,7 +516,7 @@ def make_asset_hrefs_relative(


def make_asset_hrefs_absolute(
stac_object: Union[Item, Collection]
stac_object: Union[Item, Collection],
) -> Union[Item, Collection]:
# Copied from
# https://github.com/stac-utils/pystac/blob/381cf89fc25c15142fb5a187d905e22681de42a2/pystac/item.py#L309C3-L319C1
Expand Down

0 comments on commit 59733ca

Please sign in to comment.