From 59733ca8cbaa5b9d2f62746f1b8a7a32a5ecad4b Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Tue, 2 Apr 2024 12:25:23 -0600 Subject: [PATCH] release: v0.2.4 --- .pre-commit-config.yaml | 9 +++------ CHANGELOG.md | 5 ++++- pyproject.toml | 9 ++++----- src/stac_asset/__init__.py | 1 - src/stac_asset/_functions.py | 4 ++-- 5 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2191279..4c98cfb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 0fdc099..1425406 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) @@ -115,7 +117,8 @@ Used to be . 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 diff --git a/pyproject.toml b/pyproject.toml index 2986a8c..3f0eade 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = "pete.gadomski@gmail.com" }] readme = "README.md" @@ -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", @@ -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" diff --git a/src/stac_asset/__init__.py b/src/stac_asset/__init__.py index 3d95f24..87606d1 100644 --- a/src/stac_asset/__init__.py +++ b/src/stac_asset/__init__.py @@ -13,7 +13,6 @@ unsupported, but is on the roadmap. """ - from ._functions import ( assert_asset_exists, asset_exists, diff --git a/src/stac_asset/_functions.py b/src/stac_asset/_functions.py index 9d72633..d628932 100644 --- a/src/stac_asset/_functions.py +++ b/src/stac_asset/_functions.py @@ -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 @@ -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