Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ repos:
- id: validate-pyproject

- repo: https://github.com/PyCQA/isort
rev: 8.0.1
rev: 9.0.0a3
hooks:
- id: isort
language_version: python

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.8
rev: v0.15.17
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.20.0
rev: v2.1.0
hooks:
- id: mypy
language_version: python
Expand Down
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## Unreleased

## 0.19.0 (2026-06-16)

* fix: HTML template
* fix: set `GDAL_NUM_THREADS=1` by default to avoid multhreading block decompression

## 0.18.0 (2026-04-02)

* add: python 3.14 support
Expand Down
4 changes: 3 additions & 1 deletion tilebench/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ def wrapped_f(*args, **kwargs):
logger.addHandler(handler)

gdal_config = config or {}
gdal_config.update({"CPL_DEBUG": "ON", "CPL_CURL_VERBOSE": "YES"})
gdal_config.update(
{"CPL_DEBUG": "ON", "CPL_CURL_VERBOSE": "YES", "GDAL_NUM_THREADS": "1"}
)

with rasterio.Env(**gdal_config):
with Timer() as t:
Expand Down
2 changes: 1 addition & 1 deletion tilebench/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ async def viewer(request: Request):
"""Handle /index.html."""
return templates.TemplateResponse(
name="index.html",
request=request,
context={
"request": request,
"geojson_endpoint": str(request.url_for("info")),
"grid_endpoint": str(request.url_for("grid")),
"tile_endpoint": str(
Expand Down
Loading