Skip to content

Commit 97861a4

Browse files
Merge pull request #271 from stac-utils/ci/dep-update-052026
ci: update lock and ci
2 parents 05db331 + da34ab4 commit 97861a4

5 files changed

Lines changed: 1127 additions & 1126 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
- name: Install dependencies
4141
run: |
42-
uv sync --extra psycopg --frozen
42+
uv sync --extra psycopg
4343
4444
- name: Run pre-commit
4545
if: ${{ matrix.python-version == env.LATEST_PY_VERSION }}
@@ -54,10 +54,10 @@ jobs:
5454
if: ${{ matrix.python-version == env.LATEST_PY_VERSION }}
5555
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
5656
with:
57-
file: ./coverage.xml
57+
files: ./coverage.xml
5858
flags: unittests
59-
name: ${{ matrix.python-version }}
6059
fail_ci_if_error: false
60+
token: ${{ secrets.CODECOV_TOKEN }}
6161

6262
benchmark:
6363
needs: [tests]
@@ -71,12 +71,12 @@ jobs:
7171
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
7272
with:
7373
version: "0.9.*"
74-
enable-cache: true
74+
enable-cache: false
7575
python-version: ${{ env.LATEST_PY_VERSION }}
7676

7777
- name: Install dependencies
7878
run: |
79-
uv sync --frozen --extra psycopg
79+
uv sync --frozen --group benchmark --extra psycopg
8080
uv pip install pypgstac==${{ env.PGSTAC_VERSION }}
8181
8282
- name: Launch services
@@ -99,7 +99,7 @@ jobs:
9999

100100
- name: Run Benchmark
101101
run: |
102-
uv run --group benchmark pytest .github/workflows/tests/benchmarks.py --benchmark-only --benchmark-columns 'min, max, mean, median' --benchmark-json output.json
102+
uv run pytest .github/workflows/tests/benchmarks.py --benchmark-only --benchmark-columns 'min, max, mean, median' --benchmark-json output.json
103103
104104
- name: Store and benchmark result
105105
uses: benchmark-action/github-action-benchmark@a60cea5bc7b49e15c1f58f411161f99e0df48372 # v1

.github/workflows/deploy_mkdocs.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,4 @@ jobs:
4141
git fetch origin gh-pages --depth=1
4242
4343
- name: Deploy documentation and update alias for latest
44-
run: |
45-
uv run mike deploy ${{ steps.module.outputs.version}} latest --push --update-aliases --config-file docs/mkdocs.yml
46-
47-
- name: Deploy docs
48-
run: uv run --group docs --extra psycopg mike deploy ${{ steps.module.outputs.version}} latest --push --update-aliases --config-file docs/mkdocs.yml
44+
run: uv run mike deploy ${{ steps.module.outputs.version}} latest --push --update-aliases --config-file docs/mkdocs.yml

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
repos:
22
- repo: https://github.com/abravalheri/validate-pyproject
3-
rev: v0.24
3+
rev: v0.25
44
hooks:
55
- id: validate-pyproject
66

77
- repo: https://github.com/PyCQA/isort
8-
rev: 5.12.0
8+
rev: 9.0.0a3
99
hooks:
1010
- id: isort
1111
language_version: python
1212

1313
- repo: https://github.com/astral-sh/ruff-pre-commit
14-
rev: v0.8.4
14+
rev: v0.15.12
1515
hooks:
1616
- id: ruff
1717
args: ["--fix"]
1818
- id: ruff-format
1919

2020
- repo: https://github.com/pre-commit/mirrors-mypy
21-
rev: v1.11.2
21+
rev: v1.20.2
2222
hooks:
2323
- id: mypy
2424
language_version: python

titiler/pgstac/dependencies.py

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,17 @@ def SearchIdParams(
4747

4848
@cached( # type: ignore
4949
ttl_cache,
50-
key=lambda pool,
51-
collection_id,
52-
ids,
53-
bbox,
54-
datetime,
55-
query,
56-
sortby,
57-
filter_expr,
58-
filter_lang: hashkey(
59-
collection_id,
60-
ids,
61-
bbox,
62-
datetime,
63-
query,
64-
sortby,
65-
filter_expr,
66-
filter_lang,
50+
key=lambda pool, collection_id, ids, bbox, datetime, query, sortby, filter_expr, filter_lang: (
51+
hashkey(
52+
collection_id,
53+
ids,
54+
bbox,
55+
datetime,
56+
query,
57+
sortby,
58+
filter_expr,
59+
filter_lang,
60+
)
6761
),
6862
lock=Lock(),
6963
)

0 commit comments

Comments
 (0)