Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (73 loc) · 2.25 KB
/
Copy pathpyproject.toml
File metadata and controls
86 lines (73 loc) · 2.25 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
78
79
80
81
82
83
84
85
86
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "spatial-fixture-gen"
version = "0.1.0"
description = "Generate synthetic geospatial test fixtures — vectors, rasters and a catalogue of pathological edge cases"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
authors = [{ name = "batch-processing.com" }]
keywords = ["geospatial", "gis", "testing", "pytest", "fixtures", "test-data"]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Pytest",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Software Development :: Testing",
]
dependencies = [
"typer>=0.12",
"rich>=13.7",
"shapely>=2.0",
"pyogrio>=0.9",
"rasterio>=1.4",
"numpy>=1.26",
"pyproj>=3.6",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"coverage>=7.5",
"mypy>=1.11",
"ruff>=0.6",
]
[project.scripts]
spatial-fixture-gen = "spatial_fixture_gen.cli:app"
[project.entry-points.pytest11]
spatial_fixture_gen = "spatial_fixture_gen.pytest_plugin"
[project.urls]
Documentation = "https://www.batch-processing.com"
Source = "https://github.com/batch-processing-geospatial-cli-tools/spatial-fixture-gen"
[tool.hatch.build.targets.wheel]
packages = ["src/spatial_fixture_gen"]
[tool.ruff]
line-length = 100
src = ["src", "tests"]
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "N", "RUF", "ANN", "D"]
ignore = ["D203", "D213", "ANN401"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D100", "D101", "D102", "D103", "D104", "ANN"]
[tool.ruff.lint.pydocstyle]
convention = "google"
# numpy's bundled stubs use PEP 695 `type` statements, so mypy must be told to
# parse as 3.12 even when it runs on the 3.11 leg of the matrix.
[tool.mypy]
python_version = "3.12"
files = ["src"]
strict = true
warn_unreachable = true
[[tool.mypy.overrides]]
module = ["pyogrio.*", "rasterio.*", "shapely.*", "pyproj.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"