-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
143 lines (129 loc) · 4.17 KB
/
Copy pathpyproject.toml
File metadata and controls
143 lines (129 loc) · 4.17 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
[tool.poetry]
name = "stampbot"
version = "0.1.0"
description = "A GitHub app that auto-approves PRs based on labels and chatops commands"
authors = ["Danny Sauer <dannysauer@users.noreply.github.com>"]
readme = "README.md"
license = "Apache-2.0"
homepage = "https://github.com/dannysauer/stampbot"
repository = "https://github.com/dannysauer/stampbot"
documentation = "https://github.com/dannysauer/stampbot/tree/main/docs"
keywords = ["github-app", "pull-requests", "automation", "chatops"]
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: FastAPI",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Version Control :: Git",
]
[tool.poetry.dependencies]
python = ">=3.11,<3.15"
fastapi = "0.141.1"
uvicorn = {extras = ["standard"], version = "0.52.0"}
pydantic = "2.13.4"
pydantic-settings = "2.14.2"
dynaconf = "3.3.4"
PyGithub = "2.9.1"
PyJWT = {extras = ["crypto"], version = "2.13.0"}
cryptography = "49.0.0"
prometheus-client = "0.26.0"
opentelemetry-api = "1.44.0"
opentelemetry-sdk = "1.44.0"
opentelemetry-instrumentation-fastapi = "0.65b0"
opentelemetry-instrumentation-logging = "0.65b0"
opentelemetry-exporter-otlp = "1.44.0"
structlog = "26.1.0"
httpx = "0.28.1"
toml = "0.10.2"
regex = "2026.7.19"
[tool.poetry.group.dev.dependencies]
pytest = "9.1.1"
pytest-cov = "7.1.0"
pytest-asyncio = "1.4.0"
ruff = "0.16.0"
mypy = "2.3.0"
types-toml = "0.10.8.20260518"
pre-commit = "4.6.1"
cosmic-ray = "8.4.6"
[tool.poetry.group.secrets.dependencies]
detect-secrets = "1.5.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 100
target-version = "py314"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"W", # pycodestyle warnings
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"D", # pydocstyle (Google style docstrings)
"S", # flake8-bandit (security)
"TCH", # flake8-type-checking
"RUF", # Ruff-specific rules
]
ignore = [
"D100", # Missing docstring in public module (too noisy for now)
"D104", # Missing docstring in public package
"D107", # Missing docstring in __init__ (Google style allows omitting)
"S101", # Use of assert (needed for tests)
"S110", # try-except-pass (sometimes intentional for optional operations)
"TC002", # Move third-party import to type-checking block (not worth churn)
"TC003", # Move stdlib import to type-checking block (not worth churn)
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"fuzzers/*_fuzzer.py" = ["N802"] # Atheris requires TestOneInput naming
"tests/*" = ["D", "S101", "S104"] # No docstrings in tests, allow assert, allow 0.0.0.0 in mocks
[tool.ruff.format]
# Use double quotes like Black
quote-style = "double"
# Indent with spaces like Black
indent-style = "space"
[tool.mypy]
python_version = "3.14"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
[[tool.mypy.overrides]]
module = ["dynaconf", "dynaconf.*"]
ignore_missing_imports = true
follow_imports = "skip"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "--cov=stampbot --cov-report=term-missing --cov-report=html --cov-report=xml -m 'not live'"
markers = [
"live: tests that make real network requests to external services (deselected by default; run with -m live)",
]
[tool.coverage.run]
branch = true
source = ["stampbot"]
omit = ["stampbot/__main__.py"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
show_missing = true
precision = 2