-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathpyproject.toml
More file actions
154 lines (135 loc) · 4.36 KB
/
Copy pathpyproject.toml
File metadata and controls
154 lines (135 loc) · 4.36 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
150
151
152
153
154
[project]
name = "acapy-cloud"
version = "5.0.0"
description = "Main project configuration for acapy-cloud"
authors = [
{ name = "Mourits de Beer", email = "mourits.debeer@didx.co.za" },
{ name = "Cloete du Preez", email = "cloete.dupreez@didx.co.za" },
]
readme = "README.md"
[tool.poetry]
package-mode = false
[tool.poetry.dependencies]
python = "~3.12.8"
base58 = "~2.1.1"
fastapi = "~0.121.3"
httpx = "~0.28.0"
loguru = "~0.7.2"
orjson = "~3.11.1"
pydantic = "~2.12.4"
PyYAML = "~6.0.2"
scalar-fastapi = "^1.3.0"
uvicorn = "~0.38.0"
uvloop = "~0.22.1"
[tool.poetry.group.app.dependencies]
aiohttp = "~3.13.2"
aiocache = "~0.12.0"
aries-cloudcontroller = "==1.4.0.post20251118"
pyjwt = "~2.10.0"
uuid_utils = "^0.11.0"
[tool.poetry.group.trust-registry.dependencies]
alembic = "~1.17.2"
asyncpg = "^0.30.0"
psycopg2-binary = "~2.9.11"
sqlalchemy = { version = "~2.0.40", extras = ["asyncio"] }
[tool.poetry.group.tails.dependencies]
aiofiles = "^25.1.0"
boto3 = "~1.41.0"
python-multipart = "~0.0.20"
[tool.poetry.group.waypoint.dependencies]
aiohttp = "~3.13.2"
dependency-injector = "^4.48.0"
nats-py = "~2.12.0"
sse-starlette = "~3.0.2"
tenacity = "^9.1.0"
uuid_utils = "^0.11.0"
[tool.poetry.group.dev.dependencies]
anyio = "~4.11.0"
mypy = "~1.18.2"
pre-commit = "~4.4.0"
pytest = "~9.0.1"
pytest-cov = "^7.0.0"
pytest-mock = "~3.15.1"
pytest-ruff = "^0.5.0"
pytest-xdist = "^3.6.1"
ruff = "~0.14.5"
[tool.coverage.run]
omit = [
"*/tests/*", # Ignore test files in coverage report
"*/.venv/*", # Ignore virtual environment files
"*/src/dependency_injector/*", # Ignore files generated by dependency-injector
]
[tool.mypy]
exclude = [
"acapy/*",
"app/tests/*",
"plugins/*",
"scripts/*",
"shared/tests/*",
"tails/tests/*",
"trustregistry/tests/*",
"waypoint/tests/*",
]
[tool.pytest.ini_options]
addopts = "--junitxml=junit.xml -p no:cacheprovider --cov-report=xml --cov-report=term:skip-covered"
junit_family = "xunit2"
[tool.ruff]
line-length = 88
lint.pycodestyle.max-line-length = 120
target-version = "py312"
lint.select = [
"ANN", # flake8-annotations (type annotations)
"ASYNC", # flake8-async (async/await)
"B", # flake8-bugbear (detect likely bugs)
"C", # mccabe (code complexity)
"D", # pydocstyle (docstring style)
"E", # pycodestyle errors (style errors)
"F", # pyflakes (detect invalid Python code)
"FAST", # fastapi
"I", # isort (import sorting)
"N", # pep8-naming (naming conventions)
"PERF", # perflint (performance anti-patterns)
"PL", # pylint
"RUF", # ruff-specific rules
"T20", # flake8-print (print statements)
"UP", # pyupgrade (upgrade syntax)
"W", # pycodestyle warnings (style warnings)
]
lint.ignore = [
# Annotations:
"ANN002", # Missing type annotation for *args
"ANN003", # Missing type annotation for **kwargs
# Docstring related:
"D100", # Missing docstring in the module
"D101", # Missing docstring in the class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D203", # 1 blank line required before class docstring
"D205", # 1 blank line required between summary line and description
"D213", # Multi-line docstring summary should start at the second line
"D400", # First line should end with a period
"D401", # First line of docstring should be in imperative mood
"D415", # First line should end with a period, question mark, or exclamation point
# Fix later:
"C901", # Function complexity is too high
"PLR0912", # Too many branches
"PLR0913", # Too many arguments in function definition
"PLR0915", # Too many statements
# Maybe fix:
"FAST002", # FastAPI dependency without `Annotated`
"PLR2004", # Magic value used in comparison, consider replacing `500` with a constant variable
# Won't fix:
"B008", # Do not perform function call `Depends` in argument defaults
# False positives:
"PLE1205", # Too many arguments detected for loguru {} formatted strings
]
exclude = [".git/*", ".venv/*", "acapy/*", "plugins/*"]
[tool.ruff.lint.per-file-ignores]
"*/tests/*" = [ # Don't require these rules for tests
"ANN001", # Missing type annotation for function argument
"ANN201", # Missing return type annotation for public function
]
[build-system]
requires = ["poetry-core>=2.2"]
build-backend = "poetry.core.masonry.api"