-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
111 lines (101 loc) · 2.46 KB
/
pyproject.toml
File metadata and controls
111 lines (101 loc) · 2.46 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[project]
name = "deribit-tracker"
version = "0.5.0"
description = "Deribit Price Tracker API"
readme = "README.md"
requires-python = ">=3.11,<4"
license = "MIT"
authors = [
{name = "script-logic", email = "dev.scriptlogic@gmail.com"}
]
urls = {Repository = "https://github.com/script-logic/deribit-tracker"}
dependencies = [
"fastapi[standard]>=0.128.0",
"sqlalchemy (>=2.0.46,<3.0.0)",
"alembic (>=1.18.1,<2.0.0)",
"aiohttp (>=3.13.3,<4.0.0)",
"asyncpg (>=0.31.0,<0.32.0)",
"pydantic (>=2.12.5,<3.0.0)",
"pydantic-settings (>=2.12.0,<3.0.0)",
"psycopg2-binary (>=2.9.11,<3.0.0)",
"toml (>=0.10.2,<0.11.0)",
"celery[redis] (>=5.6.2,<6.0.0)",
"types-redis (>=4.6.0.20241004,<5.0.0.0)",
"jinja2 (>=3.1.6,<4.0.0)",
]
[tool.poetry]
packages = [{include = "app"}]
[tool.poetry.group.dev.dependencies]
mypy = ">=1.15.0"
ruff = ">=0.4.8"
pytest = "^8.3.0"
pytest-asyncio = "^0.23.0"
pytest-cov = "^7.0.0"
pytest-xprocess = "^0.22.0"
pre-commit = "^4.5.1"
bandit = "^1.9.3"
safety = "^3.7.0"
detect-secrets = "^1.5.0"
httpx = "^0.28.1"
celery-types = "^0.24.0"
pytest-mock = "^3.15.1"
[tool.ruff]
target-version = "py311"
line-length = 79
lint.select = ["E", "W", "F", "I", "B", "C4", "UP", "RUF"]
exclude = ["__pycache__/", ".git/", "*.pyc"]
format.indent-style = "space"
format.skip-magic-trailing-comma = false
format.quote-style = "double"
preview = true
[tool.ruff.lint.isort]
known-first-party = ["app"]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
disable_error_code = ["import-untyped"]
[[tool.mypy.overrides]]
module = "alembic"
ignore_errors = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--strict-config",
"--tb=short",
"--cov=app",
"--cov-report=term-missing",
"--cov-report=xml",
"--cov-report=html",
"--asyncio-mode=auto"
]
markers = [
"unit: unit tests",
"integration: integration tests",
"slow: slow running tests"
]
[tool.coverage.run]
source = ["app"]
omit = [
"*/__pycache__/*",
"*/tests/*",
"*/migrations/*",
]
[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__.:",
"pass"
]