-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathpyproject.toml
More file actions
93 lines (81 loc) · 2.35 KB
/
Copy pathpyproject.toml
File metadata and controls
93 lines (81 loc) · 2.35 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
[build-system]
requires = ["setuptools>=61.0", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[project]
name = "spml"
description = "Spatial machine learning."
dynamic = ["version"]
authors = [
{ name = "Martin Fleischmann", email = "martin@martinfleischmann.net" },
]
license = "BSD-3-Clause"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: GIS",
]
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"geopandas>=1.1.0",
"joblib>=1.5.0",
"libpysal>=4.15",
"numpy>=2.0.0",
"scipy>=1.14.0",
"scikit-learn>=1.5.0",
"pandas>=2.3.0",
]
[project.urls]
Homepage = "https://pysal.org/spml/"
Documentation = "https://pysal.org/spml/"
Repository = "https://github.com/pysal/spml.git"
Issues = "https://github.com/pysal/spml/issues"
Changelog = "https://github.com/pysal/spml/releases"
[tool.setuptools.packages.find]
include = ["spml", "spml.*"]
[tool.ruff]
line-length = 88
extend-include = ["*.ipynb"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "N", "B", "A", "C4", "SIM", "ARG"]
ignore = ["N803", "N806"] # name {} should be lowercase
[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
]
"**/conf.py" = [
"A001", # Variable is shadowing a Python builtin (Sphinx requires `copyright`)
]
[tool.ty.rules]
unresolved-attribute = "ignore"
no-matching-overload = "ignore"
unresolved-import = "ignore"
[tool.coverage.run]
source = ["./spml"]
[tool.coverage.report]
exclude_lines = [
"if self.debug:",
"pragma: no cover",
"raise NotImplementedError",
"except ModuleNotFoundError:",
"except ImportError",
]
ignore_errors = true
omit = ["spml/tests/*"]
[tool.pytest.ini_options]
filterwarnings = [
"error",
"ignore:The 'shapely.geos' module is deprecated*:DeprecationWarning",
"ignore:This process \\(pid=\\d+\\) is multi-threaded*:DeprecationWarning",
"ignore:divide by zero encountered in power:RuntimeWarning",
"ignore:Some inputs do not have OOB scores.",
"ignore:Setting the shape on a NumPy array"
]