-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
executable file
·189 lines (173 loc) · 3.77 KB
/
pyproject.toml
File metadata and controls
executable file
·189 lines (173 loc) · 3.77 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "erasmus-workspace"
version = "0.1.0"
description = "Erasmus is a context manager for AI development."
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
authors = [
{ name = "Richard Porteous aka Bakobiibizo", email = "richard@hydradynamix.com" }
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"typer>=0.9.0",
"rich>=13.0.0",
"pysnooper>=1.2.2",
"pydantic>=2.10.6",
"watchdog>=4.0.2",
"mcp[cli]>=1.6.0",
"loguru>=0.7.3",
"requests>=2.32.3",
"toml>=0.10.2",
"networkx>=3.4.2",
"matplotlib>=3.10.3",
"black>=25.1.0",
"dotenv>=0.9.9",
]
[project.scripts]
erasmus = "erasmus.__main__:main"
[project.optional-dependencies]
test = [
"pytest>=8.0.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.12.0",
"hypothesis>=6.95.0",
]
dev = ["black>=24.0.0", "isort>=5.13.0", "mypy>=1.8.0", "ruff>=0.2.0"]
[tool.hatch.build.targets.wheel]
packages = ["erasmus"]
[tool.pytest.ini_options]
minversion = "8.0"
addopts = "-v --cov=erasmus"
testpaths = ["tests"]
python_files = ["test_*.py"]
[tool.coverage.run]
source = ["erasmus"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if __name__ == .__main__.:",
"raise NotImplementedError",
]
[tool.ruff]
line-length = 100
target-version = "py310"
src = ["erasmus"]
ignore = ["G004", "TRY003", "TRY002", "E501", "PLW0603"]
# Enable Pyflakes (`F`), isort (`I`), and many other linters
select = [
"E",
"F",
"I",
"W",
"N",
"B",
"A",
"COM",
"C4",
"DTZ",
"T10",
"ISC",
"ICN",
"G",
"PIE",
"PYI",
"PT",
"RET",
"SIM",
"TID",
"ARG",
"PTH",
"ERA",
"PD",
"PL",
"TRY",
"UP",
"RUF"
]
# Allow autofix for all enabled rules (when `--fix`) is provided
fixable = ["ALL"]
unfixable = []
# Exclude a variety of commonly ignored directories
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
# Allow unused variables when underscore-prefixed
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"] # Ignore unused imports in __init__.py
"tests/**/*.py" = ["S101"] # Allow assert in tests
[tool.ruff.mccabe]
max-complexity = 10
[tool.ruff.isort]
known-first-party = ["erasmus"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
skip-magic-trailing-comma = false
docstring-code-format = true
docstring-code-line-length = "dynamic"
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
show_error_codes = true
pretty = true
follow_imports = "silent"
strict_optional = true
warn_redundant_casts = true
warn_unreachable = true
warn_no_return = true
# Ignore errors in certain files
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
disallow_incomplete_defs = false
no_implicit_optional = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
[tool.uv.workspace]
members = ["erasmus", "packager"]
[dependency-groups]
dev = [
"black>=25.1.0",
"pytest-asyncio>=0.24.0",
]