-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
84 lines (77 loc) · 2.22 KB
/
pyproject.toml
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
[project]
name = "deep-ice"
version = "1.4.0"
description = "E-commerce platform selling ice cream"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"alembic>=1.13.3",
"fastapi[standard]>=0.115.2",
"pydantic>=2.9.2",
"pydantic-settings>=2.5.2",
"sqlmodel>=0.0.22",
"asyncpg>=0.29.0",
"greenlet>=3.1.1",
"passlib[bcrypt]>=1.7.4",
"pyjwt>=2.9.0",
"arq>=0.26.1",
"redis>=5.1.1",
"sentry-sdk[arq,fastapi]>=2.18.0",
"aioredlock>=0.7.3",
"setuptools>=75.6.0",
]
[tool.uv]
dev-dependencies = [
"aiosqlite>=0.20.0",
"black>=24.10.0",
"flake8-pyproject>=1.2.3",
"flake8>=7.1.1",
"isort>=5.13.2",
"mypy>=1.12.0",
"pytest-asyncio>=0.24.0",
"pytest-mock>=3.14.0",
"pytest>=8.3.3",
"ruff>=0.6.9",
"types-passlib>=1.7.7.20240819",
"pytest-env>=1.1.5",
]
[tool.setuptools]
packages = ["deep_ice"]
[tool.pytest.ini_options]
# Explicitly set the loop scope for asyncio fixtures to avoid the deprecation warning
asyncio_default_fixture_loop_scope = "function"
filterwarnings = [
"ignore::Warning",
"ignore::DeprecationWarning",
"ignore::UserWarning",
]
addopts = "--disable-warnings"
env = [
"SENTRY_DSN = ", # disable Sentry reporting during testing
"LOG_LEVEL = INFO",
"DEBUG = true"
]
[tool.flake8]
# Check that this is aligned with your other tools like Black
max-line-length = 88
exclude = [
# No need to traverse our git directory
".git",
# There's no value in checking cache directories
"__pycache__"
]
# Use extend-ignore to add to already ignored checks which are anti-patterns like W503.
extend-ignore = [
# PEP 8 recommends to treat : in slices as a binary operator with the lowest priority, and to leave an equal
# amount of space on either side, except if a parameter is omitted (e.g. ham[1 + 1 :]).
# This behaviour may raise E203 whitespace before ':' warnings in style guide enforcement tools like Flake8.
# Since E203 is not PEP 8 compliant, we tell Flake8 to ignore this warning.
# https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#slices
"E203"
]
[tool.black]
line-length = 88
[tool.ruff]
line-length = 88
[tool.mypy]
ignore_missing_imports = true