-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
123 lines (107 loc) · 2.74 KB
/
pyproject.toml
File metadata and controls
123 lines (107 loc) · 2.74 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
123
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "dylan"
version = "0.6.11"
description = "AI-powered development utilities using Claude Code"
readme = "README.md"
requires-python = ">=3.12"
license = {text = "MIT"}
authors = [
{name = "Rasmus Widing", email = "rasmus.widing@gmail.com"}
]
dependencies = [
"pygithub>=2.6.1",
"ruff>=0.11.10",
"requests>=2.32.3",
"filelock>=3.18.0",
"typer>=0.15.4",
"rich>=14.0.0",
"gitpython>=3.1.44",
]
[project.optional-dependencies]
dev = [
"black>=25.1.0",
"mypy>=1.15.0",
"pytest>=8.3.5",
"pytest-cov>=4.1.0",
"ruff>=0.11.10",
]
[tool.setuptools]
packages = ["dylan"]
package-dir = {"" = "."}
[project.scripts]
dylan = "dylan.cli:app"
[tool.black]
line-length = 100
target-version = ["py312"]
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"W", # pycodestyle warnings
"UP", # pyupgrade
"B", # flake8-bugbear
"C90", # mccabe complexity
"N", # pep8-naming
"D", # pydocstyle
"S", # flake8-bandit
]
ignore = [
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"E501", # Line too long (we'll handle manually)
"S101", # Use of assert (common in tests)
"S603", # subprocess without shell=True
"S607", # Starting a process with a partial executable path
"B008", # Do not perform function calls in argument defaults
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101", "D"] # Allow assert in tests, no docstrings needed
"concept_library/**/*.py" = ["D", "E501", "C901", "S108", "B", "UP", "N"] # POCs can be more relaxed
"__init__.py" = ["D104"]
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
[tool.pytest.ini_options]
testpaths = ["dylan"]
python_files = "test_*.py"
python_functions = "test_*"
addopts = [
"--import-mode=importlib",
"-v",
"--strict-markers",
]
norecursedirs = ["**/provider_clis/[!tests]*"]
[tool.coverage.run]
source = ["dylan"]
omit = [
"*/__init__.py",
"*/tests/*",
"*/.venv/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"pass",
"raise ImportError",
]