-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (121 loc) · 4.35 KB
/
Copy pathpyproject.toml
File metadata and controls
133 lines (121 loc) · 4.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
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
[build-system]
requires = ["setuptools>=82.0.1"]
build-backend = "setuptools.build_meta"
[project]
name = "mloda-registry-workspace"
version = "0.2.0"
description = "Development workspace for mloda registry packages"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.10,<3.15"
dependencies = [
"mloda>=0.10.0,<0.11.0",
]
authors = [
{ name = "Tom Kaltofen", email = "info@mloda.ai" }
]
[project.optional-dependencies]
dev = [
"tox",
"tox-uv",
"pytest",
"pytest-xdist",
"ruff",
"mypy",
"bandit",
"tomli",
"python-dateutil",
"types-python-dateutil",
"duckdb",
"pandas",
"polars",
"pyarrow",
]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
extend-select = ["UP006", "UP007"]
[tool.ruff.lint.per-file-ignores]
"**/tests/**" = ["E402"]
[tool.setuptools.packages.find]
where = ["."]
include = ["mloda*"]
namespaces = true
[tool.pytest.ini_options]
testpaths = ["tests", "mloda/**/tests"]
pythonpath = ["."]
addopts = "--import-mode=importlib"
filterwarnings = [
"error:The behavior of DataFrame concatenation with empty or all-NA entries:FutureWarning",
"error:Mean of empty slice:RuntimeWarning",
]
[tool.mypy]
namespace_packages = true
explicit_package_bases = true
[[tool.mypy.overrides]]
# pyarrow.compute registers functions dynamically from the C++ kernel
# registry, so its type stubs cannot fully enumerate `pc.*` attributes.
# pyarrow 24 narrowed its stub exports for ~28 commonly-used compute
# functions (sum, if_else, year, divide, VarianceOptions, ...) — they
# still exist at runtime. `follow_imports = skip` treats the module as
# untyped so callers can access `pc.*` without `attr-defined` failures;
# typing of pyarrow itself (`pa.Table`, etc.) is unaffected. Remove when
# stubs restore the explicit exports.
module = ["pyarrow.compute", "pyarrow.compute.*"]
follow_imports = "skip"
[tool.bandit]
exclude_dirs = [
"venv",
".venv",
"migrations",
"__pycache__",
"build",
"dist",
".devcontainer",
".tox",
".vscode",
"attribution",
"*.egg-info",
"site-packages"
]
skips = [
"B101", # Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
"B104" # Possible binding to all interfaces detected.
]
[tool.uv]
exclude-newer = "7 days"
exclude-newer-package = { mloda = false, uv = false }
# AUTO-GENERATED workspace members from config/packages.toml
# Do not edit manually - run: python scripts/generate_pyproject.py
[tool.uv.workspace]
members = [
"mloda/community",
"mloda/community/compute_frameworks/example",
"mloda/community/extenders/example",
"mloda/community/feature_groups/data_operations",
"mloda/community/feature_groups/data_operations/aggregation",
"mloda/community/feature_groups/data_operations/row_changing/resample",
"mloda/community/feature_groups/data_operations/row_preserving/binning",
"mloda/community/feature_groups/data_operations/row_preserving/datetime",
"mloda/community/feature_groups/data_operations/row_preserving/ema",
"mloda/community/feature_groups/data_operations/row_preserving/ffill",
"mloda/community/feature_groups/data_operations/row_preserving/frame_aggregate",
"mloda/community/feature_groups/data_operations/row_preserving/offset",
"mloda/community/feature_groups/data_operations/row_preserving/percentile",
"mloda/community/feature_groups/data_operations/row_preserving/point_arithmetic",
"mloda/community/feature_groups/data_operations/row_preserving/rank",
"mloda/community/feature_groups/data_operations/row_preserving/scalar_aggregate",
"mloda/community/feature_groups/data_operations/row_preserving/scalar_arithmetic",
"mloda/community/feature_groups/data_operations/row_preserving/sessionization",
"mloda/community/feature_groups/data_operations/row_preserving/time_bucketization",
"mloda/community/feature_groups/data_operations/row_preserving/window_aggregation",
"mloda/community/feature_groups/data_operations/string",
"mloda/community/feature_groups/example",
"mloda/community/feature_groups/example/example_a",
"mloda/community/feature_groups/example/example_b",
"mloda/enterprise",
"mloda/enterprise/compute_frameworks/example",
"mloda/enterprise/extenders/example",
"mloda/enterprise/feature_groups/example",
"mloda/registry",
"mloda/testing",
]