slenk commited on
Commit
97fe75f
·
verified ·
1 Parent(s): c260a50

Upload pyproject.toml with huggingface_hub

Browse files
Files changed (1) hide show
  1. pyproject.toml +71 -0
pyproject.toml ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "codewraith"
7
+ version = "0.1.0"
8
+ description = "Module-to-Spec Transformer: generates technical specifications from Python source code"
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = "MIT"
12
+
13
+ [project.optional-dependencies]
14
+ ml = [
15
+ "transformers>=4.40.0",
16
+ "torch>=2.1.0",
17
+ "accelerate>=0.27.0",
18
+ "datasets>=2.18.0",
19
+ "dspy>=2.5.0",
20
+ ]
21
+ training = [
22
+ "unsloth",
23
+ "peft>=0.10.0",
24
+ "trl>=0.8.0",
25
+ "bitsandbytes>=0.43.0",
26
+ "datasets>=2.18.0",
27
+ ]
28
+ app = [
29
+ "gradio>=4.0.0",
30
+ "chromadb>=0.5.0",
31
+ "sentence-transformers>=3.0.0",
32
+ ]
33
+ all = [
34
+ "codewraith[ml,training,app]",
35
+ ]
36
+ dev = [
37
+ "pytest>=8.0.0",
38
+ "pytest-cov>=5.0.0",
39
+ "ruff>=0.3.0",
40
+ ]
41
+
42
+ [tool.ruff]
43
+ target-version = "py310"
44
+ line-length = 100
45
+
46
+ [tool.ruff.lint]
47
+ select = ["E", "F", "I", "W"]
48
+
49
+ [tool.ruff.lint.per-file-ignores]
50
+ "src/codewraith/verifier/judge.py" = ["E501"]
51
+
52
+ [tool.pytest.ini_options]
53
+ testpaths = ["tests"]
54
+
55
+ [tool.coverage.run]
56
+ source = ["src"]
57
+ omit = [
58
+ # Requires Ollama running
59
+ "src/codewraith/teacher/generator.py",
60
+ "src/codewraith/teacher/optimize.py",
61
+ # Requires HF datasets streaming
62
+ "src/codewraith/teacher/collect.py",
63
+ # Requires GPU / unsloth
64
+ "src/codewraith/student/trainer.py",
65
+ "src/codewraith/student/evaluate.py",
66
+ # Requires Ollama for LLM judge calls
67
+ "src/codewraith/verifier/judge.py",
68
+ # App (requires gradio + loaded model)
69
+ "src/codewraith/app/main.py",
70
+ "src/codewraith/app/retriever.py",
71
+ ]