-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
89 lines (79 loc) · 1.66 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
[tool.poetry]
name = "sfs"
version = "0.1.0"
description = "Simple files storages"
authors = ["flavien-hugs <flavienhugs@pm.me>"]
packages = [{include = "src"}]
[tool.poetry.dependencies]
python = "3.12.3"
fastapi = {extras = ["standard"], version = "^0.115.3"}
python-slugify = "^8.0.4"
fastapi-pagination = "^0.12.31"
pydantic-settings = "^2.6.0"
uvloop = "^0.21.0"
boto3 = "^1.35.49"
beanie = "^1.27.0"
httpx = "0.27.2"
[tool.poetry.group.dev.dependencies]
pre-commit = "^4.0.1"
black = "^24.10.0"
flake8 = "^7.1.1"
bandit = "^1.7.10"
flake8-pyproject = "^1.2.3"
[tool.poetry.group.test.dependencies]
pytest = "^8.3.3"
pytest-dotenv = "^0.5.2"
pytest-asyncio = "^0.24.0"
coverage = "^7.6.4"
mongomock-motor = "^0.0.34"
pytest-cov = "^5.0.0"
pytest-mock = "^3.14.0"
faker = "^30.8.1"
[tool.flake8]
max-line-length = 130
exclude = [
".git",
"__pycache__",
".venv",
".pytest_cache",
".tox",
".eggs"
]
[tool.black]
line-length = 130
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| \.docker
| \*.egg-info
| _build
| buck-out
| build
| dist
)/
)
'''
[tool.poetry.scripts]
app = 'src.cli:app'
[tool.pytest.ini_options]
env_files = 'tests/.test.env'
env_override_existing_values = 1
capture = "no"
log-cli-level = "INFO"
python_files = "test_*.py"
asyncio_mode = "auto"
filterwarnings = [
"ignore",
"ignore:.*U.*mode is deprecated:DeprecationWarning"
]
asyncio_default_fixture_loop_scope = "function"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"