-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathpyproject.toml
More file actions
62 lines (54 loc) · 1.84 KB
/
Copy pathpyproject.toml
File metadata and controls
62 lines (54 loc) · 1.84 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
# Workspace-root pyproject.
#
# The repo is a uv workspace containing three Python members (the engine, the
# FastAPI backend, and — eventually — a Python SDK) plus non-Python members
# (the React UI, future Electron app, infra modules). This file:
#
# 1. Declares the uv workspace.
# 2. Hosts the *shared* ruff + pytest defaults every Python package inherits.
# 3. Does NOT define a project itself — the engine lives at packages/engine/.
#
# The name "pycaret" is published from packages/engine/pyproject.toml.
# There is no single monolithic package at the repo root anymore.
[tool.uv.workspace]
members = [
"packages/engine",
"services/api",
]
[tool.uv.sources]
pycaret = { workspace = true }
pycaret-server = { workspace = true }
# --- shared tooling defaults -------------------------------------------------
#
# Each workspace member can override these in its own pyproject; defaults apply
# when ruff is run from the repo root (`ruff check .`).
[tool.ruff]
line-length = 100
target-version = "py313"
# Legacy engine code paths scheduled for Phase 5 drain. Linting what's destined
# for deletion creates noise. Lint is enforced on the new 4.0 surface only.
exclude = [
"packages/engine/pycaret/internal",
"packages/engine/pycaret/containers",
"packages/engine/pycaret/classification/oop.py",
"packages/engine/pycaret/regression/oop.py",
"packages/engine/pycaret/clustering/oop.py",
"packages/engine/pycaret/anomaly/oop.py",
"packages/engine/pycaret/time_series/forecasting/oop.py",
"packages/engine/pycaret/datasets.py",
"packages/engine/pycaret/utils",
]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B"]
ignore = [
"E501",
"E731",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"**/migrations/**" = ["E", "F", "I", "UP", "B"]
[dependency-groups]
dev = [
"pycaret[dev,test]",
"pycaret-server[dev,test]",
]