-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
130 lines (112 loc) · 2.91 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
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
[tool.poetry]
name = "shibumi-store"
version = "0.1.0"
description = "The 'Shibumi Store' backend project is a small e-commerce solution that provides a seamless and efficient shopping experience."
authors = ["Valentyn Malenchak <valentyn17@gmail.com>"]
readme = "README.md"
packages = [{include = "shibumi_store"}]
[tool.poetry.dependencies]
python = "^3.12"
fastapi = "0.115.6"
uvicorn = {extras = ["standard"], version = "0.34.0"}
pytest = "8.3.4"
invoke = "2.2.0"
motor = "3.6.0"
arrow = "1.3.0"
httpx = "0.28.1"
python-multipart = "0.0.20"
injector = "0.22.0"
pytest-asyncio = "0.25.0"
motor-types = "1.0.0b4"
pytest-cov = "6.0.0"
pydantic = {extras = ["email"], version = "2.9.2"}
phonenumbers = "8.13.52"
pydantic-extra-types = "2.10.1"
mongodb-migrations = "1.3.1"
redis = "5.2.1"
sendgrid = "6.11.0"
tenacity = "9.0.0"
pyjwt = "2.10.1"
argon2-cffi = "23.1.0"
[tool.poetry.group.dev.dependencies]
mypy = "1.13.0"
ruff = "0.8.4"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# Ruff configuration
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
# Same as Black.
line-length = 88
# Assume Python 3.12.
target-version = "py312"
[tool.ruff.lint]
# Enable the pycodestyle (`E`), Pyflakes (`F`), pycodestyle warnings (`W`),
# isort (`I`), pep8-naming (`N`), Pylint (`PL`), McCabe complexity (`C901`),.
# pyupgrade (`UP`) and Ruff-specific rules (`RUF`).
select = ["E", "F", "W", "I", "N", "PL", "C90", "UP", "RUF"]
# Allow autofix for isort and F401 imported but unused.
fixable = ["I", "F401"]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
# Mypy configuration
[tool.mypy]
python_version = 3.12
strict = true
[[tool.mypy.overrides]]
module = "mongodb_migrations.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["invoke"]
implicit_reexport = true
# Pytest configuration
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
# Coverage configuration
[tool.coverage.run]
relative_files = true
omit = ["*/tests/*"]
[tool.coverage.report]
fail_under = 90
exclude_lines = [
# A pragma comment that excludes a line, branch, fuction or class
"# pragma: no cover",
# Skip abstract methods
"@abstractmethod",
"@abc.abstractmethod",
# Skip not implemented methods
"raise NotImplementedError",
# Skip module execution blocks
"if __name__ == \"__main__\":",
]