-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
148 lines (135 loc) · 3.18 KB
/
pyproject.toml
File metadata and controls
148 lines (135 loc) · 3.18 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
[tool.poetry]
name = "CAP"
version = "0.2.0"
description = "Cardano Analytics Platform"
authors = ["MOBR Systems <contact@mobr.ai>"]
readme = "README.md"
license = "MIT"
[tool.poetry.dependencies]
python = ">=3.11"
fastapi = ">=0.115.2"
uvicorn = ">=0.32.0"
uvloop = ">=0.21.0"
httpx = { version = ">=0.28.1", extras = ["http2"] }
pydantic = ">=2.6.1"
pydantic-settings = ">=2.7.1"
opentelemetry-api = ">=1.23.0"
opentelemetry-sdk = ">=1.23.0"
opentelemetry-instrumentation-fastapi = ">=0.44b0"
opentelemetry-exporter-otlp = ">=1.23.0"
SPARQLWrapper = ">=2.0.0"
python-dotenv = ">=1.0.0"
sqlalchemy = ">=2.0.0"
psycopg2-binary = ">=2.9.5"
asyncpg = ">=0.29.0"
bcrypt = ">=4.0.1"
pyjwt = "^2.10.1"
python-multipart = "^0.0.20"
google-auth = "^2.40.3"
google-auth-oauthlib = "^1.2.2"
google-api-python-client = "^2.181.0"
requests = "^2.32.5"
email-validator = "^2.3.0"
jinja2 = "^3.1.6"
resend = "^2.13.1"
redis = ">=5.0.0"
alembic = "^1.17.1"
langdetect = "^1.0.9"
rdflib = "^7.0.0"
psutil = "^7.1.3"
simplemma = "1.1.2"
chromadb = "^1.5.1"
[tool.poetry.group.rag.dependencies]
sentence-transformers = ">=5.2.3"
chromadb = ">=1.5.0"
[tool.poetry.group.dev.dependencies]
pytest = ">=8.0.0"
pytest-asyncio = ">=0.23.5"
pytest-cov = ">=4.1.0"
black = ">=24.1.1"
isort = ">=5.13.2"
mypy = ">=1.8.0"
ruff = ">=0.3.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 100
target-version = ["py311"]
[tool.isort]
profile = "black"
line_length = 100
multi_line_output = 3
[tool.ruff]
line-length = 100
target-version = "py311"
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
[tool.mypy]
python_version = "3.11"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = [
"SPARQLWrapper.*",
"opentelemetry.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["src/tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--strict-config",
"--cov=src/cap",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-report=xml",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
]
[tool.coverage.run]
source = ["src/cap"]
omit = [
"*/tests/*",
"*/test_*",
"*/__init__.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]