-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
156 lines (139 loc) · 3.34 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
[build-system]
requires = ["setuptools>=61.0", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[project]
name = "core"
dynamic = ["version"]
#authors = [
# { name = "", email = "" },
# { name = "", email = "" },
# { name = "", email = "" },
#]
#maintainers = [{ name = "" }]
license = { text = "BSD 3-Clause" }
description = "State-of-the-Art simplification of street network geometry with Python"
keywords = [""]
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: GIS",
]
requires-python = ">=3.11"
dependencies = [
"bokeh",
"clustergram",
"contextily",
"dask",
"dask-geopandas",
"geopandas>=0.13.0",
"graphblas-algorithms",
#"h3-py", # -- via conda
"h3==3.7.7", # -- via PyPI
"ipykernel",
"jupyterlab",
"matplotlib>=3.9",
"momepy>=0.9.0",
"osmnx>=1.9.1",
"pip",
"pyarrow",
"pyogrio",
"scikit-learn>=1.2",
"tobler>=0.11.3",
"tqdm>=4.63.0",
"watermark",
"opencv-python", # -- via PyPI
# -- via conda -- see https://github.com/conda-forge/opencv-feedstock
# | "libopencv",
# | "opencv",
# | "py-opencv",
# formatting & linting
"pre-commit",
"ruff",
# tqdm warning - TqdmWarning: IProgress not found
"jupyter",
"ipywidgets",
# not available via conda-forge
"cityseer",
"parenx",
# bleeding edge functionality
"neatnet @ git+https://github.com/uscuni/neatnet.git",
]
[project.urls]
Home = "https://github.com/uscuni/"
Repository = "https://github.com/uscuni/simplification"
[project.optional-dependencies]
tests = [
"codecov",
"coverage",
"pytest",
"pytest-cov",
"pytest-xdist",
]
[tool.setuptools.packages.find]
include = ["core", "core.*"]
[tool.ruff]
line-length = 88
extend-include = ["*.ipynb"]
lint.select = ["E", "F", "W", "I", "UP", "N", "B", "A", "C4", "SIM", "ARG"]
[tool.ruff.lint.per-file-ignores]
"*__init__.py" = [
"F401", # imported but unused
"F403", # star import; unable to detect undefined names
]
"*.ipynb" = [
"C408", # Unnecessary `dict` call
"E501", # Line too long
"F401", # imported but unused
]
[tool.coverage.run]
source = ["./core"]
[tool.coverage.report]
exclude_lines = [
"if self.debug:",
"pragma: no cover",
"raise NotImplementedError",
"except ModuleNotFoundError:",
"except ImportError",
]
ignore_errors = true
omit = ["core/tests/*"]
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["linux-64", "osx-arm64", "osx-64", "win-64"]
[tool.pixi.dependencies]
python = "3.12.*"
bokeh = "*"
clustergram = "*"
contextily = "*"
dask = "*"
dask-geopandas = "*"
geopandas = "*"
h3-py = "3.7.7.*"
ipykernel = "*"
jupyterlab = ">=4.3.2,<5"
matplotlib = ">=3.9"
momepy = ">=0.9.0"
osmnx = "*"
pip = "*"
pyarrow = "*"
pyogrio = "*"
rasterio = "*"
scikit-learn = "*"
tobler = "*"
tqdm = "*"
watermark = "*"
pre-commit = "*"
ruff = "*"
jupyter = "*"
ipywidgets = "*"
pixi-kernel = ">=0.5.2,<0.6"
[tool.pixi.pypi-dependencies]
core = { path = ".", editable = true }
[tool.pixi.environments]
default = { solve-group = "default" }
tests = { features = ["tests"], solve-group = "default" }
[tool.pixi.tasks]