-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (95 loc) · 2.66 KB
/
Copy pathpyproject.toml
File metadata and controls
109 lines (95 loc) · 2.66 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
[project]
name = "tusk-ml"
version = "0.1.7"
description = "Automated feature engineering for narwhals dataframes"
authors = [
{name="Excidion", email="excidion@proton.me"}
]
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.10"
dependencies = ["narwhals>=2.24"]
[project.urls]
"Documentation" = "https://excidion.github.io/tusk/"
"Source Code"= "https://github.com/Excidion/tusk"
[project.optional-dependencies]
sklearn = ["scikit-learn>=1.4"]
plot = ["mermaidx>=0.9.5"]
[build-system]
requires = ["uv_build>=0.12.7,<0.13"]
build-backend = "uv_build"
[tool.uv.build-backend]
# The distribution is named tusk-ml because tusk is taken on PyPI; the
# import name stays tusk.
module-name = "tusk"
[dependency-groups]
lint = [
"interrogate>=1.7.0",
"pre-commit-uv>=4.3.0",
"pydoclint>=0.9.1",
"ruff>=0.16.3",
"ty>=0.0.72",
]
test = [
"duckdb>=1.0",
"mermaidx>=0.9.5",
"pandas>=2.0",
"polars>=1.43",
"pyarrow>=17",
"pytest>=8.0",
"scikit-learn>=1.4",
]
dev = [
{ include-group = "lint" },
{ include-group = "test" },
]
validation = [
"featuretools>=1.31",
# featuretools imports pkg_resources, which setuptools 81 removed.
"setuptools<81",
]
benchmark = [
"relbench>=2.1",
]
docs = [
"mkdocstrings[python]>=1.0.6",
"zensical>=0.0.56",
]
[tool.pytest.ini_options]
testpaths = ["tests", "benchmarks"]
markers = [
"differential: cross-checks values against featuretools (opt-in)",
"benchmark: relbench performance runs (opt-in)",
]
addopts = "-m 'not differential and not benchmark'"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "D"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"]
[tool.interrogate]
fail-under = 100
ignore-init-module = true
ignore-private = true
ignore-magic = true
ignore-nested-functions = true
exclude = ["tests", ".venv", ".claude"]
[tool.pydoclint]
style = "google"
exclude = "tests|benchmarks"
arg-type-hints-in-docstring = false
check-return-types = false
# ruff (D107) and interrogate both require __init__ to carry its own
# docstring; without this flag pydoclint's DOC301 forbids exactly that
# whenever the class also has a docstring.
allow-init-docstring = true
[[tool.ty.overrides]]
include = ["src/tusk/primitives/**", "tests/**"]
[tool.ty.overrides.rules]
# Primitive.build is variadic in the ABC and fixed-arity in each concrete
# primitive. Arity is guaranteed by construction: synthesis supplies exactly
# len(input_dtypes) expressions to outputs(), which is build()'s only caller.
# Scoped rather than project-wide so override checking stays active everywhere
# else.
invalid-method-override = "ignore"