-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (89 loc) · 2.29 KB
/
pyproject.toml
File metadata and controls
96 lines (89 loc) · 2.29 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
[tool.poetry]
name = "patas-core"
version = "2.0.0"
description = "PATAS - Pattern-Adaptive Transmodal Anti-Spam System. Self-learning tool that discovers spam patterns and generates blocking rules automatically."
authors = ["KikuAI Lab"]
readme = "README.md"
license = "AGPL-3.0"
packages = [
{include = "app"},
{include = "integration"}
]
[tool.poetry.dependencies]
python = "^3.10"
fastapi = "^0.104.1"
uvicorn = {extras = ["standard"], version = "^0.24.0"}
pydantic = "^2.5.0"
pydantic-settings = "^2.1.0"
sqlalchemy = "^2.0.23"
aiosqlite = "^0.19.0"
asyncpg = {version = "^0.29.0", optional = true}
slowapi = "^0.1.9"
python-multipart = "^0.0.6"
transformers = "^4.35.0"
torch = "^2.1.0"
numpy = "^1.26.0"
python-jose = {extras = ["cryptography"], version = "^3.3.0"}
passlib = {extras = ["bcrypt"], version = "^1.7.4"}
protobuf = "^6.33.0"
sentencepiece = "^0.2.1"
httpx = "^0.25.0"
cachetools = "^6.2.1"
redis = {version = "^5.0.0", optional = true}
opentelemetry-api = "^1.21.0"
opentelemetry-sdk = "^1.21.0"
opentelemetry-instrumentation-fastapi = "^0.42b0"
opentelemetry-instrumentation-httpx = "^0.42b0"
prometheus-client = "^0.19.0"
pyyaml = "^6.0.1"
sqlparse = "^0.4.4"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.3"
pytest-asyncio = "^0.21.1"
pytest-cov = "^4.1.0"
pytest-benchmark = "^4.0.0"
locust = "^2.17.0"
ruff = "^0.1.6"
mypy = "^1.7.0"
black = "^23.11.0"
openai = "^2.7.1"
tqdm = "^4.67.1"
requests = "^2.31.0"
[tool.poetry.scripts]
patas = "app.cli:main"
patas-api = "app.api.run:main"
patas-integration = "integration.cli:main"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
addopts = [
"-v",
"--strict-markers",
"--tb=short",
"--cov=app",
"--cov=integration",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-report=xml",
"--cov-fail-under=85",
]
markers = [
"e2e: End-to-end tests",
"integration: Integration tests",
"unit: Unit tests",
"slow: Slow running tests",
]