Skip to content

Commit 1eb4e7a

Browse files
committed
chore: update ruff version, add sync-with-uv to pre-commit
1 parent ac755ed commit 1eb4e7a

5 files changed

Lines changed: 1417 additions & 1411 deletions

File tree

.pre-commit-config.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,25 @@
22
# Please run `pre-commit run --all-files` when adding or changing entries.
33

44
repos:
5+
- repo: https://github.com/tsvikas/sync-with-uv
6+
rev: v0.4.0
7+
hooks:
8+
- id: sync-with-uv
59
- repo: https://github.com/codespell-project/codespell
610
rev: v2.3.0
711
hooks:
812
- id: codespell
913
args: [--ignore-words=.codespellignore]
1014
types_or: [jupyter, markdown, python, shell]
1115
- repo: https://github.com/pre-commit/mirrors-mypy
12-
rev: v1.10.1
16+
rev: v1.13.0
1317
hooks:
1418
- id: mypy
1519
additional_dependencies:
1620
- click != 8.1.0
1721
- stactools
1822
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.8.3
23+
rev: v0.14.2
2024
hooks:
2125
- id: ruff
2226
args: [ --fix ]

docker/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
1313
ENV UV_LINK_MODE=copy \
1414
UV_COMPILE_BYTECODE=1 \
1515
UV_PYTHON_DOWNLOADS=never \
16-
UV_PYTHON=python3.12 \
16+
UV_PYTHON=python3.13 \
1717
UV_PROJECT_ENVIRONMENT=/opt/venv \
1818
PATH="/opt/venv/bin:$PATH"
1919
WORKDIR /opt/stactools-glad-global-forest-change
@@ -31,7 +31,7 @@ FROM dependencies as builder
3131
ENV UV_LINK_MODE=copy \
3232
UV_COMPILE_BYTECODE=1 \
3333
UV_PYTHON_DOWNLOADS=never \
34-
UV_PYTHON=python3.12 \
34+
UV_PYTHON=python3.13 \
3535
UV_PROJECT_ENVIRONMENT=/opt/venv \
3636
PATH="/opt/venv/bin:$PATH"
3737
WORKDIR /opt/stactools-glad-global-forest-change
@@ -50,7 +50,7 @@ FROM dependencies as dev-dependencies
5050
ENV UV_LINK_MODE=copy \
5151
UV_COMPILE_BYTECODE=1 \
5252
UV_PYTHON_DOWNLOADS=never \
53-
UV_PYTHON=python3.12 \
53+
UV_PYTHON=python3.13 \
5454
UV_PROJECT_ENVIRONMENT=/opt/venv \
5555
PATH="/opt/venv/bin:$PATH"
5656
WORKDIR /opt/stactools-glad-global-forest-change

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dev = [
3636
"pytest-cov~=6.0",
3737
"pytest~=8.2",
3838
"requests~=2.32",
39-
"ruff==0.8.3",
39+
"ruff>=0.14.2",
4040
"ipython>=8.18.1",
4141
"jupyterlab>=4.3.5",
4242
]

src/stactools/glad_global_forest_change/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import stactools.core
22
from stactools.cli.registry import Registry
3+
34
from stactools.glad_global_forest_change.stac import create_collection, create_item
45

56
__all__ = ["create_collection", "create_item"]

0 commit comments

Comments
 (0)