-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
105 lines (93 loc) · 2.06 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
[tool.poetry]
name = "auth-microservice"
version = "0.1.0"
description = "Service d'authentification et de gestion d'utilisateurs"
authors = ["Flavien HUGS <flavienhugs@pm.me>"]
packages = [{include = "src" }]
[tool.poetry.dependencies]
python = "3.12.3"
beanie = "1.26.0"
python-slugify = "^8.0.4"
fastapi-jwt = "^0.3.0"
pyotp = "^2.9.0"
httptools = "^0.6.1"
uvloop = "^0.21.0"
fastapi-cache2 = {extras = ["redis"], version = "^0.2.2"}
fastapi = {version = "^0.115.0", extras = ["standard"]}
fastapi-pagination = "^0.12.27"
pydantic-settings = "^2.5.2"
pwdlib = {extras = ["argon2", "bcrypt"], version = "^0.2.1"}
user-agents = "^2.2.0"
python-multipart = "^0.0.12"
cachetools = "^5.5.0"
python-jose = "^3.3.0"
getmac = "0.9.5"
[tool.poetry.group.test.dependencies]
pytest = "^8.3.2"
coverage = "^7.6.0"
pytest-mock = "^3.14.0"
pytest-asyncio = "^0.23.8"
mongomock-motor = "^0.0.31"
faker = "^26.1.0"
setuptools = "^72.1.0"
pytest-cov = "^5.0.0"
pytest-dotenv = "^0.5.2"
fakeredis = "^2.24.1"
httpx = "0.27.2"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.8.0"
ipython = "^8.26.0"
black = "^24.8.0"
bandit = "^1.7.9"
safety = "^3.2.5"
flake8 = "^7.1.1"
flake8-pyproject = "^1.2.3"
[tool.poetry.scripts]
app = 'src.cli:app'
create-first-user = 'src.shared.scripts.users:app'
insert-default-roles = 'src.shared.scripts.roles:app'
insert-default-params = 'src.shared.scripts.params:app'
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.flake8]
max-line-length = 120
exclude = [
".git",
"*tests*",
"*common*",
"__pycache__"
]
[tool.black]
line-length = 120
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| \.docker
| \*.egg-info
| _build
| buck-out
| build
| dist
| tests
)/
)
'''
[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"
]