-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (83 loc) · 2.7 KB
/
pyproject.toml
File metadata and controls
91 lines (83 loc) · 2.7 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "apprentice-ai"
version = "0.3.2"
description = "Adaptive model distillation framework — progressively replace expensive API calls with fine-tuned local models through coaching, evaluation, and phased rollout"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.12"
authors = [
{name = "Jeremy McEntire"},
]
dependencies = [
"pydantic>=2.0",
"pyyaml>=6.0",
"httpx>=0.25.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-asyncio>=0.21",
"python-dateutil>=2.8",
]
gke = [
"kubernetes>=28.0",
"google-cloud-storage>=2.10",
]
wos = []
ml = [
"transformers>=4.35.0",
"torch>=2.0.0",
"datasets>=2.14.0",
]
lint = [
"ruff>=0.4.0",
]
transmogrifier = [
"transmogrifier>=0.2.0",
]
[project.scripts]
apprentice = "apprentice.cli:main"
[tool.hatch.build.targets.wheel]
packages = ["src/apprentice"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
[tool.ruff]
target-version = "py312"
line-length = 120
[tool.ruff.lint]
select = ["E", "F", "W"]
ignore = [
"E501", # line too long — handled by formatter
"F401", # unused imports — many re-exports
"F403", # star imports — used in __init__.py
"E741", # ambiguous variable names
"F811", # redefinition of unused name — adapter patterns
"W605", # invalid escape sequence — some regex patterns
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["E", "F", "W"]
"src/apprentice/__init__.py" = ["F401", "F403"]
# Pact-generated leaf implementations — lint incrementally
"src/apprentice/audit_log.py" = ["E", "F", "W"]
"src/apprentice/apprentice_class.py" = ["E", "F", "W"]
"src/apprentice/budget_manager.py" = ["E", "F", "W"]
"src/apprentice/config_loader.py" = ["E", "F", "W"]
"src/apprentice/data_models.py" = ["E", "F", "W"]
"src/apprentice/evaluators.py" = ["E", "F", "W"]
"src/apprentice/fine_tuning_orchestrator.py" = ["E", "F", "W"]
"src/apprentice/kubernetes_lora_backend.py" = ["E", "F", "W"]
"src/apprentice/local_model_server.py" = ["E", "F", "W"]
"src/apprentice/model_validator.py" = ["E", "F", "W"]
"src/apprentice/phase_manager.py" = ["E", "F", "W"]
"src/apprentice/remote_api_client.py" = ["E", "F", "W"]
"src/apprentice/rolling_window.py" = ["E", "F", "W"]
"src/apprentice/router.py" = ["E", "F", "W"]
"src/apprentice/sampling_scheduler.py" = ["E", "F", "W"]
"src/apprentice/task_registry.py" = ["E", "F", "W"]
"src/apprentice/training_data_store.py" = ["E", "F", "W"]
"src/apprentice/report_generator/*" = ["E", "F", "W"]
"src/apprentice/cli/*" = ["E", "F", "W"]