-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (77 loc) · 1.75 KB
/
Copy pathpyproject.toml
File metadata and controls
87 lines (77 loc) · 1.75 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "github-sts"
version = "0.1.2"
description = "A Python Security Token Service (STS) for the GitHub API"
readme = "README.md"
requires-python = ">=3.14"
license = { text = "MIT" }
authors = [
{ name = "Alexandre Delisle", email = "oss@adelisle.com" },
]
dependencies = [
"fastapi>=0.110.0",
"uvicorn[standard]>=0.29.0",
"httpx>=0.27.0",
"pydantic>=2.0.0",
"python-jose[cryptography]>=3.3.0", # OIDC JWT validation
"PyJWT>=2.8.0", # GitHub App JWT signing
"pyyaml>=6.0",
"prometheus-client>=0.25.0"
]
[tool.hatch.build.targets.wheel]
packages = ["src/github_sts"]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"ruff>=0.3.0",
]
[tool.uv]
dev-dependencies = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"ruff>=0.3.0",
]
[tool.ruff]
line-length = 88
target-version = "py314"
extend-exclude = [
".git",
".venv",
"venv",
"__pycache__",
"build",
"dist",
".pytest_cache",
".ruff_cache",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
"RUF", # Ruff-specific rules
]
ignore = [
"E501", # Line too long (handled by formatter)
]
[tool.ruff.lint.isort]
known-first-party = ["github_sts"]
case-sensitive = true
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"