-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
69 lines (60 loc) · 1.47 KB
/
pyproject.toml
File metadata and controls
69 lines (60 loc) · 1.47 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "forge"
version = "0.1.0"
description = "Generic LLM fine-tuning framework with YAML-driven task configuration"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"datasets>=3.0.0",
"loguru>=0.7.3",
"mlflow>=2.0.0",
"psutil>=7.0.0",
"pydantic>=2.0.0",
"pyyaml>=6.0",
"rich>=13.7.0",
"typer>=0.12.0",
"invoke>=2.2.0",
]
[project.optional-dependencies]
training = [
"accelerate",
"bitsandbytes>=0.48.0",
"peft>=0.18.0",
"torch>=2.0.0",
"trl",
"unsloth",
]
hub = [
"huggingface-hub>=0.25.0",
]
dev = [
"pytest>=8.0.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.12.0",
"ruff>=0.14.0",
]
[project.scripts]
forge = "forge.cli:app"
[tool.hatch.build.targets.wheel]
packages = ["src/forge"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = ["-v", "--strict-markers", "--cov=forge", "--cov-report=term-missing"]
[tool.ruff]
line-length = 150
target-version = "py313"
[tool.ruff.lint]
select = ["E", "W", "F", "I", "B", "S", "UP", "PTH", "RUF", "C4", "PT", "BLE", "LOG", "G", "T10", "SIM", "PIE", "N", "PERF"]
ignore = ["S101", "S104", "S603", "S607", "E501"]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101", "PLR2004", "PTH123"]
"tasks.py" = ["PT"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true