-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
52 lines (48 loc) · 1.11 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
[project]
authors = [
{name = "Kanishk Pachauri", email = "itskanishkp.py@gmail.com"},
]
dependencies = [
"fastapi[all]>=0.104.1",
"sqlalchemy>=2.0.38",
"jinja2>=3.1.2",
"slowapi>=0.1.8",
"pygments>=2.17.2",
"alembic>=1.14.1",
"pydantic-settings>=2.7.1",
"minio>=7.2.15",
"psycopg2-binary>=2.9.10",
]
requires-python = ">=3.10"
readme = "README.md"
license = {text = "MIT"}
[tool.pdm.scripts]
start = "uvicorn src.paste.main:app --host 0.0.0.0 --port 8080 --workers 4"
dev = "uvicorn src.paste.main:app --host 0.0.0.0 --port 8080 --reload"
test = "pytest"
mypy = "mypy src/paste"
make_migration = "alembic revision --autogenerate -m 'run migration via pdm'"
migrate = "alembic upgrade head"
[tool.pdm.dev-dependencies]
test = [
"pytest>=7.4.3",
"requests>=2.31.0",
]
lint = [
"ruff>=0.1.9",
"black>=23.12.1",
]
[tool.ruff]
line-length = 160
exclude = ["data/*", ".git"]
[dependency-groups]
typing = [
"mypy>=1.8.0",
"isort",
]
test = ["pytest>=7.4.3", "requests>=2.31.0"]
lint = ["ruff>=0.1.9", "black>=23.12.1"]
hooks = [
"pre-commit>=3.6.0",
"isort>=6.0.0",
]