Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (65 loc) · 2.14 KB
/
Copy pathpyproject.toml
File metadata and controls
77 lines (65 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[project]
name = "vgi-mvt-worker"
version = "0.3.4"
description = "Decode Mapbox Vector Tiles (PMTiles, MBTiles, XYZ, .mvt) into DuckDB tables with GEOMETRY columns"
readme = "README.md"
license = "MIT-0"
license-files = ["LICENSE"]
requires-python = ">=3.14"
dependencies = [
# [http] adds the HTTP transport (`--http`) used by Docker deploys.
# SDK bumps go through the template (minor bumps can raise the protocol).
# [haybarn] embeds the engine the SDK uses to apply filters DuckDB pushes into
# read_tiles (filter_pushdown, needed for the spatial bounding-box hint).
"vgi-python[http,haybarn]>=0.52.2,<0.53",
# PMTiles v3 header/directory codec (pure Python, BSD-3-Clause).
"pmtiles>=3.4",
# GEOS clipping and union to join a feature's pieces across tile edges (BSD-3-Clause).
"shapely>=2.0",
]
[project.scripts]
vgi-mvt-worker = "mvt_worker.worker:main"
[dependency-groups]
dev = [
# The pushdown recipe evaluates predicates locally; a worker that uses filter
# pushdown must add the `haybarn` extra to its own dependencies.
"vgi-python[haybarn]>=0.52.2,<0.53",
"pytest>=8.4",
"mypy>=1.18",
"ruff>=0.14",
"pyarrow-stubs>=20.0",
]
[build-system]
requires = ["hatchling>=1.27"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/mvt_worker"]
[tool.ruff]
line-length = 120
target-version = "py314"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "A", "C4", "SIM", "RUF", "D"]
# RUF012: the SDK declares metadata as plain class attributes on `class Meta`.
ignore = ["D203", "D213", "RUF012"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"]
"test/*" = ["D"]
[tool.mypy]
strict = true
python_version = "3.14"
files = ["src", "tests", "examples"]
[[tool.mypy.overrides]]
module = ["vgi.*", "vgi_rpc.*"]
follow_untyped_imports = true
[[tool.mypy.overrides]]
module = ["pmtiles.*", "shapely.*"]
ignore_missing_imports = true
[tool.pydoclint]
style = "google"
arg-type-hints-in-docstring = false
check-return-types = false
check-yield-types = false
allow-init-docstring = true
skip-checking-short-docstrings = true
[tool.pytest.ini_options]
testpaths = ["tests"]