-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (62 loc) · 1.64 KB
/
Copy pathpyproject.toml
File metadata and controls
73 lines (62 loc) · 1.64 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
[project]
name = "foundry"
version = "0.1.0"
requires-python = ">=3.12"
dependencies = [
"torch",
"numpy",
"typer",
"tiktoken",
"datasets",
]
[project.scripts]
foundry = "foundry.cli.main:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["foundry"]
[tool.uv]
package = true
[project.optional-dependencies]
test = ["pytest>=8.0", "ruff>=0.13.0", "pyright>=1.1.407"]
tools = ["matplotlib>=3.5", "pyyaml>=6.0"]
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ruff.lint]
select = [
"E", "W", "F", "I", "N", "UP", "B", "C4", "C90", "SIM", "RET",
"S", "PTH", "PERF", "RUF", "TCH", "TID", "PIE", "T20", "FLY", "FURB",
]
ignore = [
"SIM108", "SIM117", "E501",
"N806", "N803", "N812", "N817",
"RET505", "RET506",
"S101",
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101", "T20", "S108", "PTH123"]
"foundry/train.py" = ["C901"] # training loop is inherently complex
"foundry/cli/sweep.py" = ["C901"] # sweep orchestration
"foundry/model.py" = ["C901"] # config validation
"foundry/health.py" = ["T201"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
pythonpath = ["src"]
[tool.pyright]
pythonVersion = "3.12"
include = ["foundry"]
typeCheckingMode = "strict"
reportUnnecessaryTypeIgnoreComment = true
reportDeprecated = true
reportPrivateUsage = false
reportConstantRedefinition = true
reportIncompatibleMethodOverride = true
reportIncompatibleVariableOverride = true
reportDuplicateImport = true
reportMissingTypeStubs = false