-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (99 loc) · 2.32 KB
/
pyproject.toml
File metadata and controls
109 lines (99 loc) · 2.32 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
[project]
name = 'fairdrop'
version = '0.1.0'
description = 'Add your description here'
readme = 'README.md'
requires-python = '>=3.10'
dependencies = [
'aioboto3>=15.5.0',
'alembic>=1.18.4',
'arq>=0.27.0',
'asyncpg>=0.31.0',
'bcrypt==3.2.2',
'boto3-stubs[essential,s3]>=1.42.54',
'email-validator>=2.3.0',
'fastapi>=0.129.0',
'itsdangerous>=2.2.0',
'orjson>=3.11.7',
'passlib[bcrypt]==1.7.4',
'pillow>=12.2.0',
'prometheus-fastapi-instrumentator>=7.1.0',
'pydantic-settings>=2.12.0',
'python-jose[cryptography]>=3.5.0',
'python-multipart>=0.0.22',
'redis>=5.3.1',
'sqladmin>=0.23.0',
'sqlalchemy[asyncio]>=2.0.46',
'structlog>=25.5.0',
'uvicorn[standard]>=0.40.0',
]
[dependency-groups]
dev = [
'httpx>=0.28.1',
'locust>=2.43.3',
'mypy>=1.19.1',
'pre-commit>=4.5.1',
'pytest>=9.0.2',
'pytest-asyncio>=1.3.0',
'pytest-cov>=7.0.0',
'pytest-env>=1.5.0',
'ruff>=0.15.0',
]
[tool.ruff]
target-version = 'py311'
line-length = 88
[tool.ruff.lint]
select = ['E', 'W', 'F', 'I', 'UP', 'C4']
[tool.ruff.format]
quote-style = 'single'
[tool.ruff.lint.per-file-ignores]
'migrations/env.py' = ['F401']
[tool.pytest.ini_options]
addopts = '-v --asyncio-mode=auto --cov=app --cov-report=term-missing'
testpaths = ['tests']
python_files = ['test_*.py']
python_classes = ['Test*']
python_functions = ['test_*']
pythonpath = ['.']
asyncio_mode = 'auto'
asyncio_default_fixture_loop_scope = 'session'
asyncio_default_test_loop_scope = 'session'
env = [
'DB_HOST=localhost',
'REDIS_HOST=localhost'
]
[tool.mypy]
python_version = '3.11'
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
show_error_codes = true
pretty = true
explicit_package_bases = true
plugins = ['pydantic.mypy', 'sqlalchemy.ext.mypy.plugin']
[[tool.mypy.overrides]]
module = [
'fastapi.*',
'sqlalchemy.*',
'alembic.*',
'asyncpg.*',
'redis.*',
'passlib.*',
'jose.*',
'prometheus_client.*',
'structlog.*',
'httpx.*',
'locust.*',
'arq.*',
]
ignore_missing_imports = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true