-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (105 loc) · 2.87 KB
/
Copy pathpyproject.toml
File metadata and controls
122 lines (105 loc) · 2.87 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[project]
name = "pyskillet"
dynamic = ["version"]
description = "Evaluation-driven Claude Code skill development"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"cyclopts>=3.0",
"pyyaml>=6.0",
"rich>=13.0",
"dspy>=2.6",
"cachetta>=0.6.6",
]
[project.scripts]
skillet = "skillet.cli.main:main"
[project.optional-dependencies]
# The Claude Agent SDK is only needed by the `tune` path (and skill drafting),
# which talk to Claude directly. Evaluating skills (`skillet eval --agent ...`)
# routes through the selected agent's CLI and does not require it.
tune = [
"claude-agent-sdk",
]
dev = [
"pyskillet[tune]",
"rust-just>=1.0",
"ruff>=0.8",
"pytest>=8.0",
"pytest-cov>=4.0",
"pytest-asyncio>=0.24",
"pytest-describe>=2.0",
"pytest-watcher>=0.4",
"pre-commit>=4.0",
"bandit>=1.7",
"ty>=0.0.1a7",
"curtaincall>=0.3.0",
"testing-conventions>=0.0.6",
]
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"C90", # mccabe complexity
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
"PTH", # flake8-use-pathlib
"PLR", # pylint refactor
"RUF", # ruff-specific rules
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pylint]
max-args = 8
max-statements = 50
[tool.ruff.lint.per-file-ignores]
# Tests can use magic values, have many statements, and complex describe blocks
"*_test.py" = ["PLR2004", "PLR0915", "C901"]
"tests/**/*.py" = ["PLR2004", "PLR0915", "C901"]
[tool.ruff.lint.isort]
known-first-party = ["skillet"]
[tool.ruff.format]
quote-style = "double"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
[tool.hatch.build.targets.wheel]
packages = ["skillet"]
[tool.hatch.build.targets.wheel.force-include]
"docs/index.md" = "skillet/docs/index.md"
"docs/getting-started.md" = "skillet/docs/getting-started.md"
"docs/concepts" = "skillet/docs/concepts"
"docs/guides" = "skillet/docs/guides"
"docs/reference" = "skillet/docs/reference"
[tool.pytest.ini_options]
testpaths = ["skillet", "scripts"]
python_files = ["*_test.py"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
markers = [
"no_mirror: test is intentionally layer-specific and has no counterpart in the other test layer",
]
[tool.coverage.run]
source = ["skillet"]
branch = true
omit = ["*_test.py"]
[tool.coverage.report]
fail_under = 85
show_missing = true
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]