-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (90 loc) · 3.29 KB
/
Copy pathpyproject.toml
File metadata and controls
100 lines (90 loc) · 3.29 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
92
93
94
95
96
97
98
99
100
[project]
name = "skillforge"
version = "0.1.0"
description = "Evolutionary breeding platform for Claude Agent Skills"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"fastapi>=0.115",
"uvicorn[standard]>=0.32",
"claude-agent-sdk>=0.1.0",
"anthropic>=0.40",
"aiosqlite>=0.20",
"pydantic>=2.9",
"python-frontmatter>=1.1",
"pyyaml>=6.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.3",
"pytest-asyncio>=0.24",
"ruff>=0.7",
"mypy>=1.13",
"httpx>=0.27",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["skillforge"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
# E/F: pycodestyle + pyflakes I: isort UP: pyupgrade B: flake8-bugbear
# SIM: flake8-simplify LOG: flake8-logging RET: flake8-return PTH: flake8-use-pathlib
# BLE: no-bare-except TRY: tryceratops (exception hygiene)
select = ["E", "F", "I", "UP", "B", "SIM", "LOG", "RET", "PTH", "BLE", "TRY"]
ignore = [
"E501", # line-too-long (handled by formatter preference)
"RET504", # unnecessary assignment before return (noisy)
"TRY003", # long messages in raise — our domain errors benefit from prose
"TRY301", # abstract raise into own block — stylistic, rarely actionable
"TRY300", # consider-else-block after try — stylistic, not buggy
"TRY004", # prefer TypeError for isinstance failures — our LLM-parse
# results are genuine *value* errors (malformed payload), not
# programmer type errors. ValueError is the right semantic.
]
# Tests may use broad excepts to assert "some error occurred" behavior.
[tool.ruff.lint.extend-per-file-ignores]
"tests/*.py" = ["BLE001"]
# Seed data modules are bulk content, not hand-maintained logic.
[tool.ruff.lint.per-file-ignores]
"skillforge/seeds/batch*.py" = ["E402", "E741", "F401", "F811", "SIM", "B"]
[tool.mypy]
python_version = "3.12"
# Baseline: opt in per-module. Wave 1 establishes the tooling + a green floor.
# Wave 2+ moves each refactored module into the checked list until everything
# is covered. This is intentional ratcheting, not permanent exemption.
ignore_missing_imports = true
follow_imports = "silent"
check_untyped_defs = false
warn_redundant_casts = true
warn_unused_ignores = false # flips to true in Wave 6 polish
# Skip modules that do not yet pass — added back as refactor waves land.
exclude = [
"^skillforge/seeds/batch[0-9]+\\.py$",
"^skillforge/api/debug\\.py$",
"^skillforge/api/bench\\.py$",
"^skillforge/api/uploads\\.py$",
"^skillforge/api/spec_assistant\\.py$",
"^skillforge/agents/competitor\\.py$",
"^skillforge/agents/competitor_managed\\.py$",
"^skillforge/agents/engineer\\.py$",
"^skillforge/agents/judge/pipeline\\.py$",
"^skillforge/agents/judge/trigger\\.py$",
"^skillforge/db/benchmark_seed_loader\\.py$",
"^skillforge/engine/evolution\\.py$",
"^skillforge/engine/export\\.py$",
"^skillforge/engine/sandbox\\.py$",
"^skillforge/main\\.py$",
"^skillforge/models/run\\.py$",
]
[[tool.mypy.overrides]]
module = ["skillforge.models.*", "skillforge.config"]
disallow_untyped_defs = true
disallow_incomplete_defs = true
strict_optional = true