-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
146 lines (132 loc) · 3.33 KB
/
pyproject.toml
File metadata and controls
146 lines (132 loc) · 3.33 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
[project]
name = "belgie"
version = "0.1.0"
description = "Modern authentication for FastAPI"
readme = "README.md"
authors = [
{ name = "Matt LeMay", email = "mplemay@users.noreply.github.com" }
]
requires-python = ">=3.12,<3.15"
dependencies = [
"belgie-core",
"belgie-proto",
"fastapi>=0.100",
"httpx>=0.24",
"pydantic>=2.0",
"pydantic-settings>=2.0",
"python-multipart>=0.0.20",
]
[project.optional-dependencies]
alchemy = [
"belgie-alchemy",
]
all = [
"belgie-alchemy",
"belgie-mcp",
"belgie-oauth",
"belgie-oauth-server",
"belgie-organization",
"belgie-team",
]
examples = [
"uvicorn[standard]>=0.38.0",
]
mcp = [
"belgie-mcp",
]
oauth = [
"belgie-oauth-server",
]
oauth-client = [
"belgie-oauth",
]
organization = [
"belgie-organization",
]
team = [
"belgie-team",
]
[build-system]
requires = ["uv_build>=0.10.0,<0.11.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"prek>=0.3.4",
"pytest>=9.0.1",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
"respx>=0.22.0",
"ruff>=0.14.5",
"rumdl",
"ty>=0.0.1a27",
]
[tool.uv.build-backend]
source-exclude = ["**/__tests__/**"]
[tool.uv.sources]
belgie-core = { workspace = true }
belgie-mcp = { workspace = true }
belgie-oauth = { workspace = true }
belgie-oauth-server = { workspace = true }
belgie-organization = { workspace = true }
belgie-proto = { workspace = true }
belgie-team = { workspace = true }
belgie-alchemy = { workspace = true }
[tool.uv.workspace]
members = [
"packages/belgie-alchemy",
"packages/belgie-core",
"packages/belgie-mcp",
"packages/belgie-oauth",
"packages/belgie-oauth-server",
"packages/belgie-organization",
"packages/belgie-proto",
"packages/belgie-team",
]
[tool.ruff]
target-version = "py312"
line-length = 120
include = ["pyproject.toml"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D", # pydocstyle (i.e. ignore missing/malformed docstrings)
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401", # imported but unused (common in __init__.py to re-export symbols)
]
"**/__tests__/**/*" = [
"ANN001", # missing type annotation for function argument
"ANN201", # missing return type annotation for public function
"ANN202", # missing return type annotation for private function
"B008", # function call in argument defaults (required for FastAPI Depends)
"F841", # local variable assigned but never used
"FAST002", # FastAPI dependency without Annotated
"INP001", # implicit namespace package (tests dir may not need __init__.py)
"PLR0913", # too many arguments in function definition
"PLR2004", # magic value used in comparison (fine in test cases)
"S101", # use of assert (tests typically use assert directly)
"S106", # possible hardcoded password (test secrets are fine)
"SLF001", # private member accessed
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"
multiline-quotes = "double"
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.ruff.format]
docstring-code-format = true
quote-style = "double"
[tool.pytest.ini_options]
asyncio_mode = "strict"
markers = [
"integration: marks tests that hit the database or external services",
]
filterwarnings = [
"error",
]
[tool.rumdl.MD013]
line_length = 120
reflow = true
code_blocks = false
tables = false