-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
151 lines (134 loc) · 3.93 KB
/
pyproject.toml
File metadata and controls
151 lines (134 loc) · 3.93 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "abovepy"
dynamic = ["version"]
description = "KyFromAbove LiDAR, DEM, and orthoimagery data access for Python"
readme = "README.md"
license = "GPL-3.0-or-later"
requires-python = ">=3.11"
authors = [
{ name = "Chris Lyons", email = "chris.lyons@ky.gov" },
]
keywords = [
"geospatial", "gis", "lidar", "dem", "kentucky", "kyfromabove",
"stac", "cog", "copc", "remote-sensing", "elevation", "orthoimagery", "oblique",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: GIS",
"Operating System :: OS Independent",
]
dependencies = [
"pystac-client>=0.7",
"rasterio>=1.3",
"geopandas>=0.14",
"pyproj>=3.6",
"httpx>=0.25",
"tqdm>=4.65",
"shapely>=2.0",
]
[project.optional-dependencies]
lidar = ["laspy>=2.5", "requests>=2.28"]
viz = ["leafmap>=0.30", "matplotlib>=3.8"]
s3 = ["boto3>=1.28"]
analysis = ["scipy>=1.11"]
all = ["abovepy[lidar,viz,s3,analysis]"]
dev = [
"pytest>=7.4",
"pytest-asyncio>=0.23",
"pytest-cov>=4.1",
"pytest-timeout>=2.2",
"respx>=0.20",
"ruff>=0.3",
"mypy>=1.8",
]
docs = [
"zensical>=0.0.20",
"mkdocs-material>=9.5",
"mkdocstrings[python]>=0.24",
"mkdocs-jupyter>=0.24",
]
[project.scripts]
abovepy = "abovepy.cli:main"
[project.urls]
Homepage = "https://github.com/chrislyonsKY/abovepy"
Documentation = "https://chrislyonsKY.github.io/abovepy/"
Repository = "https://github.com/chrislyonsKY/abovepy"
Issues = "https://github.com/chrislyonsKY/abovepy/issues"
Changelog = "https://github.com/chrislyonsKY/abovepy/blob/main/CHANGELOG.md"
[tool.hatch.version]
path = "src/abovepy/_version.py"
[tool.hatch.build.targets.sdist]
include = ["src/abovepy"]
[tool.hatch.build.targets.wheel]
packages = ["src/abovepy"]
[tool.ruff]
target-version = "py311"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "SIM", "S", "PT", "RUF", "C4"]
ignore = [
"RUF001", # ambiguous unicode in strings (intentional: en dash in ranges)
"RUF003", # ambiguous unicode in comments (intentional: × in dimensions)
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"S101", # assert is expected in tests
"S108", # hardcoded /tmp paths in mocks are fine
"S301", # pickle roundtrip in exception tests is intentional
"S314", # XML parsing in export tests uses locally generated data
"S603", # subprocess with hardcoded args in CLI tests
"PT011", # overly strict pytest.raises match requirements
"RUF059", # unused unpack vars common in (data, profile) test patterns
]
[tool.ruff.lint.isort]
known-first-party = ["abovepy"]
[tool.mypy]
python_version = "3.11"
strict = true
warn_unused_ignores = false
[[tool.mypy.overrides]]
module = ["abovepy.terrain", "abovepy.titiler._pgstac", "abovepy.viz._urls"]
disable_error_code = ["no-any-return", "arg-type", "operator", "attr-defined", "var-annotated"]
[[tool.mypy.overrides]]
module = [
"rasterio.*",
"osgeo.*",
"geopandas",
"pandas",
"shapely.*",
"tqdm",
"laspy",
"laspy.*",
"pystac_client",
"pystac",
"pyproj",
"matplotlib.*",
"scipy.*",
"leafmap",
"rio_cogeo",
"rio_cogeo.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-m 'not integration and not slow' --strict-markers -ra"
markers = [
"integration: tests requiring network access",
"slow: full workflow tests",
]
[tool.coverage.run]
source = ["abovepy"]
[tool.coverage.report]
fail_under = 70
show_missing = true
skip_covered = true