-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
70 lines (54 loc) · 1.32 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
[project]
name = "quotepedia"
version = "0.0.0"
dependencies = [
"fastapi[all]>=0.112.0",
"fastapi-mail>=1.4.1",
"sqlalchemy>=2.0.32",
"alembic>=1.13.2",
"psycopg>=3.2.1",
"psycopg-binary>=3.2.1",
"psycopg2-binary>=2.9.9",
"pyheck>=0.1.5",
"pyjwt>=2.9.0",
"passlib>=1.7.4",
"bcrypt==4.0.1",
"redis>=5.0.8",
"pillow>=10.4.0",
"emoji>=2.14.0",
"scalar-fastapi>=1.0.3",
]
requires-python = "==3.12.*"
[tool.pdm]
distribution = false
[tool.pdm.dev-dependencies]
dev = [
"ruff>=0.5.7",
"babel>=2.16.0",
]
[tool.pdm.scripts]
"dev" = "uvicorn src.app:app --reload"
"start" = "uvicorn src.app:app --host 0.0.0.0 --port 8000"
"check" = "ruff check"
"format" = "ruff format"
"i18n:update" = "pybabel update -w 120 -D messages -i 'src/i18n/locales/messages.pot' -d 'src/i18n/locales'"
"i18n:extract" = "pybabel extract -w 120 -F pyproject.toml -o 'src/i18n/locales/messages.pot' ."
"i18n:compile" = "pybabel compile -f -D messages -d 'src/i18n/locales' --statistics"
[tool.ruff]
line-length = 120
indent-width = 4
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"I", # isort
]
[[tool.babel.mappings]]
method = "jinja2"
pattern = "**.jinja"
[[tool.babel.mappings]]
method = "python"
pattern = "**.py"
[[tool.babel.mappings]]
method = "ignore"
pattern = ["**/tests/**", "**/migrations/**"]