-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
207 lines (190 loc) · 5.11 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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
[project]
name = "OvertureMaestro"
version = "0.1.2"
description = "An open-source tool for downloading Overture Maps data with quality of life features"
authors = [{ name = "Kamil Raczycki", email = "[email protected]" }]
dependencies = [
"overturemaps>=0.8.0",
"geopandas>=1.0",
"shapely>=2.0.6",
"pyarrow>=16.0.0",
"rich>=12.0.0",
"geoarrow-rust-core>=0.3.0",
"pooch>=1.6.0",
"aiohttp>=3.8.0",
"fsspec>=2021.04.0",
"geopy>=2.0.0",
"numpy>=1.26.0",
]
requires-python = ">=3.9"
readme = "README.md"
license = { text = "Apache-2.0" }
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: GIS",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: Unix",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
]
[project.optional-dependencies]
cli = ["typer[all]>=0.9.0", "h3>=4.0.0b1", "s2>=0.1.9", "python-geohash>=0.8"]
index-generation = ["scikit-learn>=1.0", "polars>=0.20.4"]
[project.scripts]
overturemaestro = "overturemaestro.__main__:main"
OvertureMaestro = "overturemaestro.__main__:main"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool]
[tool.pdm]
[tool.pdm.dev-dependencies]
# pdm add -d <library>
dev = ["bumpver", "types-requests", "setuptools>=45.0.0"]
# pdm add -dG lint <library>
lint = ["pre-commit>=4", "mypy>=1", "docformatter[tomli]", "ruff>=0.1.0"]
# pdm add -dG test <library>
test = [
"pytest>=7.0.0",
"tox-pdm>=0.7.2",
"pytest-mock>=3.3.0",
"requests-mock>=1.12.1",
"pytest-check>=2.3.1",
"pytest-parametrization>=2022.2.1",
"pytest-doctestplus>=1.2.1",
"boto3>=0.0.14",
]
# pdm add -dG docs <library>
docs = [
"mkdocs",
"mkdocs-material",
"mkdocs-mermaid2-plugin",
"mkdocstrings[python]",
"mkdocs-jupyter",
"ipykernel",
"mkdocs-gen-files",
"mkdocs-awesome-pages-plugin",
"mike>=1,<2",
"black",
"jupyter",
"nbconvert",
"nbformat",
"notebook",
"matplotlib>=3.2.0",
"seaborn>=0.10.0",
"py-cpuinfo",
"adjustText",
"contextily",
]
license = ["licensecheck", "pipdeptree"]
cli-dev = [
"ipywidgets",
"folium",
"matplotlib>=3.2.0",
"mapclassify",
"lonboard",
"pixel-map>=0.2.3",
]
benchmark = [
"psutil>=5.6.2",
"duckdb>=1.1.0",
"drawarrow",
"highlight-text",
"pypalettes",
]
[tool.pdm.scripts]
post_install = "pre-commit install"
[tool.pdm.build]
excludes = ["overturemaestro/conftest.py"]
[tool.black]
line-length = 100
target-version = ["py39", "py310", "py311", "py312"]
preview = true
[tool.ruff]
line-length = 100
target-version = "py39"
extend-exclude = ["old"]
[tool.ruff.lint]
select = [
"E",
"W", # pycodestyle
"F", # pyflakes
"UP", # pyupgrade
"D", # pydocstyle
"I", # isort
"B", # flake8-bugbear
"NPY", # NumPy
"YTT", # flake8-2020
"Q", # flake8-quotes
"PLE",
"PLW", # pylint (add "PLR" in the future)
"PIE", # misc lints
"TID", # tidy imports
"ISC", # implicit string concatenation
"TCH", # type-checking imports
# "N", # pep8-naming
# "ANN", # flake8-annotations
]
ignore = ["D212"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pycodestyle]
max-doc-length = 100
[tool.mypy]
strict = true
show_column_numbers = true
disallow_untyped_defs = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
[tool.docformatter]
syntax = 'google'
black = true
recursive = true
wrap-summaries = 100
wrap-descriptions = 100
# force-wrap = false # uncomment after https://github.com/PyCQA/docformatter/issues/68 is resolved
tab-width = 4
blank = false
pre-summary-newline = true
close-quotes-on-newline = true
wrap-one-line = true
[tool.bumpver]
current_version = "0.1.2"
version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"
commit_message = "chore(CI/CD): bump version {old_version} -> {new_version}"
commit = true
tag = false
push = false
[tool.bumpver.file_patterns]
"pyproject.toml" = [
'^current_version = "{version}"$',
'^version = "{version}"$',
]
"overturemaestro/__init__.py" = ['^__version__ = "{version}"$']
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]
markers = ["slow: marks tests as slow (deselect with '-m \"not slow\"')"]
log_cli = true
doctest_optionflags = [
'ELLIPSIS',
'NORMALIZE_WHITESPACE',
'IGNORE_EXCEPTION_DETAIL',
]
[tool.licensecheck]
using = "requirements"
zero = false
ignore_licenses = ["UNKNOWN"]
ignore_packages = [
'docformatter', # uses MIT license, has mismatched license in analysis
'mkdocs-jupyter', # uses Apache-2.0 license, has mismatched license in analysis
'python-geohash', # uses both MIT and Apache-2.0 licenses, has mismatched license in analysis
]