-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
81 lines (65 loc) · 1.75 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "sknnr"
dynamic = ["version"]
description = "Scikit-learn estimators for kNN regression methods"
readme = "README.md"
requires-python = ">=3.9"
authors = [
{ name = "Matt Gregory", email = "[email protected]" },
{ name = "Aaron Zuspan", email = "[email protected]" },
]
dependencies = ["numpy", "scikit-learn>=1.2", "scipy"]
[project.urls]
Homepage = "https://github.com/lemma-osu/sknnr"
Source = "https://github.com/lemma-osu/sknnr"
[tool.hatch.version]
path = "src/sknnr/__about__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/sknnr"]
[tool.hatch.build.targets.sdist]
include = ["/src"]
[tool.hatch.envs.default]
dependencies = ["pre-commit"]
[tool.hatch.envs.test]
dependencies = ["scikit-learn>=1.6.0", "pytest", "pytest-cov", "pandas"]
[tool.hatch.envs.test.scripts]
all = "pytest . {args} --doctest-modules"
coverage = "pytest . --cov=src/sknnr {args} --doctest-modules"
[tool.hatch.envs.test_matrix]
template = "test"
[[tool.hatch.envs.test_matrix.matrix]]
python = ["3.9", "3.10", "3.11", "3.12"]
[tool.hatch.envs.docs]
dependencies = ["mkdocs", "mkdocs-material", "mkdocstrings[python]"]
[tool.hatch.envs.docs.scripts]
serve = "mkdocs serve --config-file docs/mkdocs.yml --watch ./README.md"
build = "mkdocs build --config-file docs/mkdocs.yml"
[tool.pytest.ini_options]
pythonpath = "src/"
markers = [
"uncollect_if(*, func): function to uncollect tests from parametrization",
]
[tool.ruff]
fix = true
show-fixes = true
[tool.ruff.lint]
select = [
"E",
"I",
"F",
"B",
"FA",
"UP",
"ISC",
"PT",
"NPY",
"Q",
"RET",
"SIM",
"PERF",
]
[tool.ruff.lint.isort]
known-first-party = ["sknnr"]