-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (111 loc) · 3.31 KB
/
pyproject.toml
File metadata and controls
122 lines (111 loc) · 3.31 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "gitlab-copilot-agent"
version = "0.1.0"
description = "Automated GitLab MR reviews powered by GitHub Copilot SDK"
requires-python = ">=3.12"
dependencies = [
"fastapi==0.136.1",
"uvicorn[standard]==0.43.0",
"github-copilot-sdk==0.2.1",
"pydantic==2.13.3",
"pydantic-settings==2.14.0",
"structlog==25.5.0",
"python-frontmatter==1.1.0",
"httpx==0.28.1",
"opentelemetry-api==1.40.0",
"opentelemetry-sdk==1.40.0",
"opentelemetry-exporter-otlp-proto-grpc==1.40.0",
"opentelemetry-exporter-otlp-proto-http==1.40.0",
"opentelemetry-instrumentation-fastapi==0.61b0",
"opentelemetry-instrumentation-httpx==0.61b0",
"pyyaml==6.0.3",
]
[project.scripts]
mapping-helper = "gitlab_copilot_agent.mapping_cli:main"
[project.optional-dependencies]
kubernetes = ["kubernetes==35.0.0"]
azure = [
"azure-identity==1.25.3",
"aiohttp==3.13.5",
"azure-storage-queue==12.15.0",
"azure-storage-blob==12.28.0",
"azure-data-tables==12.7.0",
]
dev = [
"pytest==9.0.3",
"pytest-asyncio==1.3.0",
"httpx==0.28.1",
"ruff==0.15.12",
"pyright==1.1.409",
"playwright==1.58.0",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
addopts = "--cov=gitlab_copilot_agent --cov-report=term-missing --cov-fail-under=90 --ignore=tests/test_k8s_integration.py -m 'not k8s'"
markers = [
"k8s: requires a running k8s cluster (deselect with '-m \"not k8s\"')",
]
filterwarnings = [
"ignore:Call to '__init__' function with deprecated usage:DeprecationWarning",
]
[tool.pyright]
typeCheckingMode = "strict"
pythonVersion = "3.12"
reportMissingModuleSource = false
reportMissingTypeStubs = false
[tool.ruff]
target-version = "py312"
line-length = 99
extend-exclude = ["tests/e2e/fixtures"]
[tool.ruff.lint]
select = [
"E", "W", # pycodestyle
"F", # pyflakes
"B", # bugbear
"N", # pep8-naming
"UP", # pyupgrade
"SIM", # simplify
"I", # isort
"D", # pydocstyle
"ANN", # annotations
"TCH", # type-checking imports
"PTH", # pathlib over os.path
"RET", # return consistency
"RUF", # ruff-native
"PLE", # pylint errors
"PLW", # pylint warnings
]
ignore = [
"ANN401", # disallows Any — pyright strict + comment convention handles this
"D107", # __init__ docstrings — class docstring covers constructor args
"D212", # conflicts with D213
"RUF100", # defer until existing noqa audit — 19 load-bearing noqa comments reference non-selected rules
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["ANN", "D", "PLR"]
"**/__init__.py" = ["D104"]
[tool.hatch.build.targets.wheel]
packages = ["src/gitlab_copilot_agent"]
[dependency-groups]
dev = [
"pyright==1.1.409",
"pytest-asyncio==1.3.0",
"pytest-cov==7.1.0",
"ruff==0.15.12",
"azure-identity==1.25.3",
"azure-storage-queue==12.15.0",
"azure-storage-blob==12.28.0",
"azure-data-tables==12.7.0",
"aiohttp==3.13.5",
"check-jsonschema==0.37.1",
"hypothesis==6.151.14",
]
fuzz = [
"atheris==3.0.0",
]