-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
85 lines (75 loc) · 2.11 KB
/
pyproject.toml
File metadata and controls
85 lines (75 loc) · 2.11 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
[project]
name = "deft-directive"
version = "0.5.0"
description = "A layered framework for AI-assisted development with consistent standards and workflows"
requires-python = ">=3.11"
[dependency-groups]
dev = [
"pytest>=7.4",
"pytest-cov>=4.1",
"pytest-mock>=3.12",
"ruff>=0.1",
"black>=23",
"mypy>=1.7",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
tmp_path_retention_count = 0 # Prevent WinError 448: pytest-current symlink cleanup fails on Windows 11 24H2+ (#281)
# --cov is intentionally absent here. Use `task test:coverage` for coverage runs.
# Adding --cov to addopts causes false failures when running content tests in
# isolation (no Python source is exercised, so coverage reports 0%).
[tool.coverage.run]
source = ["."]
omit = [
"tests/*",
".venv/*",
"*/site-packages/*",
"run", # terminal-only CLI -- excluded pending refactor (#228)
"run.py", # importlib shim for run -- excluded pending refactor (#228)
]
[tool.coverage.report]
fail_under = 85
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"raise NotImplementedError",
]
[tool.ruff]
line-length = 100
exclude = [
".venv",
"__pycache__",
"run", # extension-less CLI entry point — not linted in Phase 1
"run.py", # importlib shim for tests — inherent E402/I001
"warping.sh",
]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "A", "C4", "PIE", "RET", "SIM"]
[tool.ruff.lint.isort]
# Combine `from X import a as _a` / `from X import b as _b` into a single
# parenthesised import block so large thin-wrapper modules (e.g.
# scripts/migrate_vbrief.py, #495/#505) stay under the 1000-line MUST
# limit from deft/main.md without one line per imported symbol.
combine-as-imports = true
[tool.black]
line-length = 100
exclude = '''
/(
\.venv
| __pycache__
)/
'''
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
ignore_missing_imports = true
exclude = [
"^run$",
"^\\.venv/",
]
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
warn_return_any = false