-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
80 lines (72 loc) · 1.51 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
[project]
name = "dnd"
version = "0.0.1"
description = "DND Viewer backend"
authors = [
{name = "Чеботарёв Виктор", email = "[email protected]"},
]
dependencies = [
"fastapi[all]==0.89.*",
"pydantic==1.10.*",
"hypercorn[h3]==0.14.*",
"sqlalchemy[asyncio]==2.0.*",
"alembic==1.9.*",
"asyncpg==0.27.*",
"passlib[bcrypt]==1.7.*",
"python-jose[cryptography]==3.3.*",
"SQLAlchemy-Utils==0.39.*",
"colour==0.1.*",
"hashids==1.3.*",
"Pillow==9.4.*",
"websockets==10.4.*",
"python-multipart==0.0.*",
]
requires-python = ">=3.11"
license = {text = "MIT"}
[tool.pdm]
[tool.pdm.dev-dependencies]
dev = [
"isort>=5.12.*",
"pytest>=7.2.*",
"black>=23.1.*",
"flake8>=6.0.*",
"Flake8-pyproject>=1.2.2",
]
[build-system]
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"
[tool.pdm.scripts]
_.env_file = ".env"
# lint
black = "black ."
flake = "flake ."
isort = "isort ."
# migrates
migrate = "alembic upgrade head"
downgrade = "alembic downgrade"
makemigration = "alembic revision --autogenerate -m"
# tests
pytest = "python -m alembic downgrade"
# run
main = "python -m dnd"
start-dev = "python -mWd dnd"
[tool.black]
line-length = 79
[tool.isort]
profile = "black"
line_length = 79
[tool.flake8]
ignore = ["W291", "E203", "W503", "E731"]
exclude = [
".git",
"__pycashe__",
"docs",
"build",
"dist",
".venv",
"__pypackeges__"
]
max-line-length = 79
count = true
[tool.pytest.ini_options]
asyncio_mode = "auto"