-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (68 loc) · 2.15 KB
/
Copy pathpyproject.toml
File metadata and controls
79 lines (68 loc) · 2.15 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
[project]
name = "python-design-patterns"
version = "1.1.0"
description = "Design patterns as importable Python modules — docs, runnable mini-projects, and an MCP server for agents."
readme = "README.md"
license = { file = "LICENSE" }
authors = [{ name = "SuperElectron" }]
requires-python = ">=3.11"
keywords = ["design-patterns", "gang-of-four", "mcp", "python-patterns"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries",
"Topic :: Education",
]
dependencies = [
"mcp>=2.1.1",
"pyyaml>=6.0",
]
[project.urls]
Homepage = "https://github.com/SuperElectron/python-design-patterns"
Reference = "https://python-patterns.guide/"
[project.scripts]
python-design-patterns-mcp = "design_patterns.mcp.server:main"
[dependency-groups]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"ruff>=0.8",
"mypy>=1.13",
"types-pyyaml>=6.0",
"pytest-asyncio>=0.24",
"pytest-timeout>=2.4.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/design_patterns", "patterns"]
[tool.ruff]
line-length = 100
target-version = "py311"
src = ["src", "patterns", "tests"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "SIM", "RUF"]
[tool.ruff.lint.isort]
# Namespace packages (PEP 420): no __init__.py to detect these by, so declare them.
known-first-party = ["patterns", "design_patterns"]
[tool.mypy]
strict = true
python_version = "3.11"
files = ["src", "patterns"]
# Namespace packages (PEP 420): no empty __init__.py — resolve modules by
# their full dotted path from the package bases below.
explicit_package_bases = true
mypy_path = ["src", "."]
[tool.pytest.ini_options]
testpaths = ["tests", "patterns"]
pythonpath = ["."]
asyncio_mode = "auto"
addopts = "-q --import-mode=importlib --cov=src --cov=patterns --cov-report=term-missing"
timeout = 30 # a shutdown regression must fail CI, not hang it
[tool.coverage.report]
skip_empty = true