-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
100 lines (83 loc) · 3.81 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
[tool]
[tool.poetry]
name = "Django Mason Starter"
version = "0.0.1"
description = "Django Mason Starter"
authors = ["David Dahan <[email protected]>"]
[tool.poetry.dependencies]
##########################################################################################
# Main
##########################################################################################
python = "3.12.0"
Django = "4.*" # https://github.com/django/django
django-environ = "*" # https://github.com/joke2k/django-environ
##########################################################################################
# Security
##########################################################################################
django-cors-headers = "*" # https://github.com/adamchainz/django-cors-headers
##########################################################################################
# API
##########################################################################################
orjson = "*" # https://github.com/ijl/orjson
django-ninja = "*" # https://github.com/vitalik/django-ninja
##########################################################################################
# Background tasks
##########################################################################################
celery = { extras = [
"redis",
], version = "*" } # https://github.com/celery/celery
django-celery-results = "*" # https://github.com/celery/django-celery-results
django-celery-beat = "*" # https://github.com/celery/django-celery-beat
##########################################################################################
# Database
##########################################################################################
dj-database-url = "*" # https://github.com/jazzband/dj-database-url
psycopg = { extras = [
"binary",
], version = "*" } # https://github.com/psycopg/psycopg
# boto3 = "*" # https://github.com/boto/boto3
# django-storages = "*" # https://github.com/jschneier/django-storages/
##########################################################################################
# Additional fields, tags, etc.
##########################################################################################
django-extensions = "*" # https://github.com/django-extensions/django-extensions
django-positions = "*" # https://github.com/jpwatts/django-positions
django-phonenumber-field = { extras = [
"phonenumbers",
], version = "*" } # https://github.com/stefanfoulis/django-phonenumber-field
django-safedelete = "*" # https://github.com/makinacorpus/django-safedelete
##########################################################################################
# DX, Testing, Debugging
##########################################################################################
django-debug-toolbar = "*" # https://github.com/jazzband/django-debug-toolbar/
ruff = "*" # https://github.com/charliermarsh/ruff
ipdb = "*" # https://github.com/gotcha/ipdb
pyyaml = "*" # https://github.com/yaml/pyyaml
pytest-django = "*" # https://github.com/pytest-dev/pytest-django/
factory-boy = "*" # https://github.com/FactoryBoy/factory_boy/
[tool.ruff]
line-length = 90
target-version = "py312"
extend-exclude = ["migrations", "__pycache__"]
per-file-ignores = {}
[tool.ruff.mccabe]
max-complexity = 10
[tool.ruff.isort]
# 🫤 each module must be described
known-first-party = ["core", "badges", "mailing", "profiles", "token_auth"]
section-order = [
"future",
"standard-library",
"django",
"third-party",
"first-party",
"local-folder",
]
[tool.ruff.isort.sections]
"django" = ["django"]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "config.settings_tests"
python_files = "tests.py test_*.py tests_*.py"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"