-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
149 lines (136 loc) · 3.77 KB
/
pyproject.toml
File metadata and controls
149 lines (136 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "devscontext"
version = "0.1.0"
description = "MCP server that provides AI coding agents with synthesized engineering context from SDLC tools"
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
authors = [
{ name = "DevsContext Contributors" },
]
keywords = ["mcp", "ai", "context", "jira", "claude-code", "developer-tools"]
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",
"Typing :: Typed",
]
dependencies = [
"mcp>=1.0",
"httpx>=0.27",
"pyyaml>=6.0",
"click>=8.0",
"pydantic>=2.0",
"aiosqlite>=0.20",
]
[project.optional-dependencies]
anthropic = ["anthropic>=0.40"]
openai = ["openai>=1.50"]
slack = ["slack-sdk>=3.0.0"]
gmail = [
"google-api-python-client>=2.0.0",
"google-auth-oauthlib>=1.0.0",
]
rag = [
"sentence-transformers>=2.2.0",
"numpy>=1.24.0",
]
all = [
"anthropic>=0.40",
"openai>=1.50",
"slack-sdk>=3.0.0",
"google-api-python-client>=2.0.0",
"google-auth-oauthlib>=1.0.0",
"sentence-transformers>=2.2.0",
"numpy>=1.24.0",
]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"pytest-httpx>=0.30",
"ruff>=0.8",
"mypy>=1.10",
]
[project.scripts]
devscontext = "devscontext.cli:main"
[project.urls]
Homepage = "https://github.com/Pro0f/devscontext"
Repository = "https://github.com/Pro0f/devscontext"
Issues = "https://github.com/Pro0f/devscontext/issues"
[tool.hatch.build.targets.wheel]
packages = ["src/devscontext"]
# =============================================================================
# RUFF CONFIGURATION
# =============================================================================
[tool.ruff]
target-version = "py311"
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"ANN", # flake8-annotations
"B", # flake8-bugbear
"A", # flake8-builtins
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"RUF", # ruff-specific rules
]
ignore = [
"ANN401", # Dynamically typed expressions (Any) are disallowed
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["ANN", "S101"] # No annotations required in tests, allow assert
"src/devscontext/demo_data.py" = ["E501"] # Demo data has realistic long content
[tool.ruff.lint.isort]
known-first-party = ["devscontext"]
# =============================================================================
# MYPY CONFIGURATION
# =============================================================================
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_ignores = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_configs = true
show_error_codes = true
show_column_numbers = true
[[tool.mypy.overrides]]
module = [
"mcp.*",
"yaml",
"aiosqlite",
"jinja2",
"slack_sdk.*",
"google.*",
"google_auth_oauthlib.*",
"googleapiclient.*",
"sentence_transformers",
"numpy",
"openai",
]
ignore_missing_imports = true
# =============================================================================
# PYTEST CONFIGURATION
# =============================================================================
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
addopts = "-v --tb=short"