forked from ApexChainx/ApexChainx-Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (97 loc) · 2.21 KB
/
Copy pathpyproject.toml
File metadata and controls
109 lines (97 loc) · 2.21 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
[build-system]
requires = ["setuptools>=68.0"]
build-backend = "setuptools.build_meta"
[project]
name = "apexchainx-backend"
version = "1.0.0"
description = "ApexChainx Backend API for SLA-aware telecom operations"
readme = "README.md"
requires-python = ">=3.11"
license = {text = "MIT"}
authors = [
{name = "ApexChainx Team"},
]
dependencies = [
"fastapi==0.115.6",
"uvicorn[standard]==0.34.0",
"redis==5.2.1",
"sqlalchemy==2.0.36",
"psycopg2-binary==2.9.10",
"alembic==1.14.0",
"pydantic-settings==2.7.0",
"celery==5.4.0",
"httpx==0.28.1",
"python-multipart==0.0.19",
"passlib[bcrypt]==1.7.4",
"gunicorn==23.0.0",
"opentelemetry-api==1.29.0",
"opentelemetry-sdk==1.29.0",
"opentelemetry-exporter-otlp-proto-grpc==1.29.0",
"opentelemetry-instrumentation-fastapi==0.50b0",
"opentelemetry-instrumentation-sqlalchemy==0.50b0",
"opentelemetry-instrumentation-httpx==0.50b0",
"opentelemetry-instrumentation-redis==0.50b0",
]
[project.optional-dependencies]
dev = [
"pytest==8.3.4",
"pytest-cov==6.0.0",
"pytest-benchmark==5.1.0",
"pytest-alembic>=0.11.0",
"hypothesis>=6.100",
"ruff==0.8.3",
"pyupgrade>=3.0",
"mypy==1.13.0",
"bandit==1.8.0",
"pip-tools==7.4.1",
"fakeredis>=2.20.0",
"schemathesis==3.38.9",
"mutmut>=3.0.0",
]
[tool.setuptools.packages.find]
where = ["."]
include = ["app*"]
[tool.ruff]
line-length = 120
target-version = "py311"
[tool.ruff.lint]
extend-select = ["DTZ005"]
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
python_version = "3.11"
explicit_package_bases = true
ignore_missing_imports = true
disable_error_code = [
"no-untyped-def",
"no-untyped-call",
"arg-type",
"assignment",
"union-attr",
"attr-defined",
"call-arg",
"return-value",
"dict-item",
"operator",
"type-arg",
"misc",
"index",
"var-annotated",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
[tool.coverage.run]
branch = true
source = ["app"]
[tool.coverage.report]
fail_under = 0
show_missing = true
skip_covered = true
omit = [
"tests/*",
"**/__init__.py",
"**/conftest.py",
]
[tool.bandit]
exclude_dirs = ["tests", ".venv"]