-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathpyproject.toml
172 lines (156 loc) · 5.66 KB
/
pyproject.toml
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
[project]
name = "lonboard"
version = "0.10.3"
description = "Fast, interactive geospatial data visualization in Jupyter."
authors = [{ name = "Kyle Barron", email = "[email protected]" }]
license = "MIT"
readme = "README.md"
requires-python = ">=3.9"
dependencies = [
"anywidget~=0.9.0",
# Version in Colab as of October 2024
# Upgrading to 5.10 would be ideal to enable generic types
"traitlets>=5.7.1",
"arro3-core>=0.4.1",
"arro3-io>=0.4.1",
"arro3-compute>=0.4.1",
"ipywidgets>=7.6.0",
"numpy>=1.14",
# The same version pin as geopandas
"pyproj>=3.3",
"typing-extensions~=4.6.0; python_version < '3.12'",
]
keywords = [
"GIS",
"cartography",
"visualization",
"geopandas",
"pandas",
"shapely",
]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Jupyter",
"Framework :: Jupyter :: JupyterLab",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: GIS",
]
[project.optional-dependencies]
cli = ["click>=8.1.7", "pyogrio>=0.8", "shapely>=2"]
geopandas = ["geopandas>=0.13", "pandas>=2", "shapely>=2"]
movingpandas = ["movingpandas>=0.17"]
[project.urls]
homepage = "https://developmentseed.org/lonboard/latest/"
documentation = "https://developmentseed.org/lonboard/latest/"
repository = "https://github.com/developmentseed/lonboard"
issues = "https://github.com/developmentseed/lonboard/issues"
changelog = "https://github.com/developmentseed/lonboard/blob/main/CHANGELOG.md"
[project.scripts]
lonboard = "lonboard._cli:main"
[dependency-groups]
docs = [
"mkdocs-material[imaging]>=9.5.49",
"mkdocs>=1.6.1",
"mkdocstrings[python]>=0.26.1",
# # This version only on 3.9+. Ok because it's a dev dependency
# mkdocs-jupyter = { version = "^0.24.5", python = "^3.9" }
"mkdocs-jupyter>=0.24.8",
"mike>=2.1.3",
"griffe-inherited-docstrings>=1.0.1",
# We use ruff format ourselves, but mkdocstrings requires black to be
# installed to format signatures in the docs
"black>=24.8.0",
]
dev = [
"duckdb>=1.1.3",
"fiona<1.10",
"geoarrow-pyarrow>=0.1.2",
"geoarrow-rust-core>=0.3.0",
"geodatasets>=2024.8.0",
"jupyterlab>=4.3.3",
"matplotlib>=3.7.5",
"movingpandas>=0.20.0",
"palettable>=3.3.3",
"pre-commit>=3.5.0",
"pyarrow>=17.0.0",
"pyogrio>=0.9.0",
"pytest>=8.3.4",
]
# Note: this is defined as a separate group so that it can be not installed in
# CI. See:
# https://github.com/developmentseed/lonboard/pull/234
# https://github.com/manzt/anywidget/issues/374
watchfiles = ["watchfiles>=0.24.0"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
only-include = ["lonboard"]
artifacts = ["lonboard/static/*.js", "lonboard/static/*.css"]
[tool.hatch.build.targets.sdist.force-include]
"MANIFEST.in" = "MANIFEST.in"
[tool.hatch.build.targets.wheel]
only-include = ["lonboard"]
artifacts = ["lonboard/static/*.js", "lonboard/static/*.css"]
[tool.hatch.build.targets.wheel.force-include]
"MANIFEST.in" = "MANIFEST.in"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"B028", # No explicit `stacklevel` keyword argument found
"B011", # Do not `assert False` (`python -O` removes these calls), raise `AssertionError()`
"D100", # Missing docstring in public module
"D406", # Section name should end with a newline ("Returns")Ruff
"D407", # Missing dashed underline after section
"E501", # Line too long
"EM", # Exception must not use a string literal, assign to variable first
"FIX002", # Line contains TODO, consider resolving the issue
"PD901", # Avoid using the generic variable name `df` for DataFrames
"PERF401", # Use a list comprehension to create a transformed list
"PGH003", # Use specific rule codes when ignoring type issues
"PLR2004", # Magic value used in comparison
"RUF015", # Prefer `next(...)` over single element slice
"S101", # Use of `assert` detected
"TD", # todo
"TRY003", # Avoid specifying long messages outside the exception class
]
[tool.ruff.lint.per-file-ignores]
"examples/*" = [
"A001", # Variable `map` is shadowing a Python builtin
"D103", # Missing docstring in public function
"ERA001", # Found commented-out code
"PTH", # pathlib
"S113", # Probable use of `requests` call without timeout
"T201", # `print` found
"UP",
]
"lonboard/*" = [
"PT", # pytest
]
"tests/*" = [
"S101", # assert
"ANN001", # Missing type annotation for function argument `geom`Ruff
"ANN201", # Missing return type annotation for public function
"ANN202", # Missing return type annotation for private function `it`
"ANN204", # Missing return type annotation for special method
"D", # docstring
"PLR2004", # Magic value used in comparison, consider replacing `100` with a constant variable
"S301", # `pickle` and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue
"S608", # Possible SQL injection vector through string-based query construction
"SLF001", # Private member accessed
]
[tool.ruff.extend-per-file-ignores]
"__init__.py" = [
"F401", # Allow unused imports in __init__.py files
]
[tool.uv]
constraint-dependencies = [
# ensure lockfile grabs wheels for pyproj for each Python version
"pyproj==3.6; python_version == '3.9'",
"pyproj>=3.7; python_version >= '3.10'",
]