-
Notifications
You must be signed in to change notification settings - Fork 25
/
pyproject.toml
126 lines (114 loc) · 3.22 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "spatialpandas"
dynamic = ["version"]
description = 'Pandas extension arrays for spatial/geometric operations'
readme = "README.md"
license = { text = "BSD-2-Clause" }
requires-python = ">=3.9"
authors = [{ name = "HoloViz developers", email = "developers@holoviz.org" }]
maintainers = [{ name = "HoloViz developers", email = "developers@holoviz.org" }]
classifiers = [
"License :: OSI Approved :: BSD License",
"Development Status :: 5 - Production/Stable",
"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 :: OS Independent",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Natural Language :: English",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries",
]
dependencies = [
'dask',
'fsspec >=2022.8',
'numba',
'packaging',
'pandas',
'pyarrow >=10',
'retrying',
]
[project.urls]
Homepage = "https://github.com/holoviz/spatialpandas"
Source = "https://github.com/holoviz/spatialpandas"
HoloViz = "https://holoviz.org/"
[project.optional-dependencies]
tests = ['pytest', 'hypothesis']
[tool.hatch.version]
source = "vcs"
raw-options = { version_scheme = "no-guess-dev" }
[tool.hatch.build.targets.wheel]
include = ["spatialpandas"]
[tool.hatch.build.targets.sdist]
include = ["spatialpandas", "scripts", "examples"]
[tool.hatch.build.hooks.vcs]
version-file = "spatialpandas/_version.py"
[tool.pytest.ini_options]
addopts = [
"--pyargs",
"--doctest-modules",
"--doctest-ignore-import-errors",
"--strict-config",
"--strict-markers",
"--color=yes",
]
minversion = "7"
xfail_strict = true
log_cli_level = "INFO"
filterwarnings = [
"error",
"ignore:datetime.datetime.utcnow():DeprecationWarning:botocore", # https://github.com/boto/boto3/issues/3889
]
[tool.ruff]
fix = true
line-length = 100
[tool.ruff.lint]
select = [
"B",
"E",
"F",
"FLY",
"I",
"ICN",
"NPY",
"PIE",
"PLC",
"PLE",
"PLR",
"PLW",
"RUF",
"UP",
"W",
]
ignore = [
"E402", # Module level import not at top of file
"E501", # Line too long
"E701", # Multiple statements on one line
"E712", # Comparison to true should be is
"E731", # Do not assign a lambda expression, use a def
"E741", # Ambiguous variable name
"F405", # From star imports
"PLE0604", # Invalid object in `__all__`, must contain only strings
"PLE0605", # Invalid format for `__all__`
"PLR091", # Too many arguments/branches/statements
"PLR2004", # Magic value used in comparison
"PLW2901", # `for` loop variable is overwritten
"RUF012", # Mutable class attributes should use `typing.ClassVar`
]
extend-unsafe-fixes = [
"F401", # Unused imports
"F841", # Unused variables
]
[tool.ruff.lint.per-file-ignores]
"spatialpandas/tests/**" = [
"NPY002", # Replace legacy `np.random.rand` call with Generator
]
[tool.ruff.lint.isort]
known-first-party = ["spatialpandas"]
combine-as-imports = true