generated from marrcandre/template_django_pdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
73 lines (67 loc) · 1.67 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
[project]
name = ""
version = ""
description = ""
authors = [{ name = "Marco André Mendes", email = "[email protected]" }]
dependencies = [
"django>=4.1.4",
"djangorestframework>=3.14.0",
"djangorestframework-simplejwt>=5.3.0",
"django-cloudinary-storage>=0.3.0",
"django-cors-headers>=4.3.0",
"django-extensions>=3.2.3",
"django-filter>=23.3",
"drf-spectacular>=0.26.5",
"gunicorn>=21.2.0",
"netifaces>=0.11.0",
"pre-commit>=3.5.0",
"psycopg2-binary>=2.9.9",
"pydotplus>=2.0.2",
"python-dotenv>=1.0.0",
"setuptools>=68.2.2",
"whitenoise[brotli]>=6.6.0",
"dj-database-url>=2.1.0",
"uvicorn>=0.29.0",
]
requires-python = ">=3.10"
license = { text = "MIT" }
[tool.pdm]
[tool.pdm.dev-dependencies]
format = ["isort>=5.11.3", "black>=22.12.0"]
dev = [
"isort>=5.12.0",
"black>=23.10.1",
"pylint>=3.0.2",
]
[[tool.pdm.autoexport]]
filename = "requirements.txt"
without-hashes = "true"
[tool.pdm.scripts]
pre_dev = "python ./scripts/set_my_ip.py"
dev = "python manage.py runserver 0.0.0.0:19003"
createsuperuser = "python manage.py createsuperuser"
pre_migrate = "python manage.py makemigrations"
migrate = "python manage.py migrate"
post_migrate = "python manage.py graph_models -g -o core.png core"
shell = "python manage.py shell"
shellp= "python manage.py shell_plus"
test = "python manage.py test"
loaddata = "python manage.py loaddata core.json"
dumpdata = "python manage.py dumpdata --indent 2"
cria_api = "python ./scripts/cria_api.py {args}"
[tool.black]
line-length = 120
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| __pypackages__
)/
'''