-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
118 lines (109 loc) · 2.98 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
[tool.poetry]
name = "lemarche"
description = "Marché de l'inclusion"
version = "1.0"
authors = []
[tool.poetry.dependencies]
boto = "^2.49.0"
boto3 = "^1.34.103"
crawlerdetect = "^0.1.7"
django = "4.2.17"
django-admin-list-filters = "^1.2"
django-anymail = "^8.6"
django-better-admin-arrayfield = "^1.4.2"
django-bootstrap4 = "^23.4"
django-ckeditor = "^6.7.1"
django-compressor = "^4.4"
django-cors-headers = "^3.14.0"
django-environ = "^0.9.0"
django-extensions = "^3.2.3"
django-fieldsets-with-inlines = { git = "https://github.com/raphodn/django-fieldsets-with-inlines.git", branch = "master" }
django-filter = "^23.3"
django-formtools = "^2.5.1"
django-htmx = "^1.17.3"
django-libsass = "^0.9"
django-select2 = "^7.11.1"
django-sesame = "^3.2.2"
django-storages = "^1.14.3"
djangorestframework = "^3.15.1"
drf-spectacular = "^0.26.5"
huey = "^2.5.0"
ipython = "^8.24.0"
openai = "^1.57.1"
psycopg2-binary = "^2.9.9"
PyMySQL = "^1.1.0"
python = "^3.10.4"
python-stdnum = "^1.20"
redis = "^5.2.1"
requests = "^2.31.0"
sentry-sdk = "^2.19.2"
shortuuid = "^1.0.13"
sib-api-v3-sdk = "^7.6.0"
wagtail = "^6.1"
wagtailmenus = "^4.0"
wagtail-modeladmin = "^2.0.0"
whitenoise = "^6.6.0"
xlwt = "^1.3.0"
django-phonenumber-field = {extras = ["phonenumbers"], version = "^7.3.0"}
django-simple-history = "^3.7.0"
django-dsfr = "1.4.3"
pillow-heif = "^0.16.0"
wagtail-markdown = "^0.12.1"
wagtail-localize = "^1.9"
unidecode = "^1.3.8"
wagtail-transfer = "^0.9.4"
[tool.poetry.group.dev.dependencies]
black = "^23.12.1"
coverage = "^7.5.1"
django-debug-toolbar = "^3.8.1"
factory-boy = "^3.3.0"
flake8 = "^6.1.0"
freezegun = "^1.4.0"
ipdb = "^0.13.13"
isort = "^5.12.0"
poethepoet = "^0.12.3"
pre-commit = "^2.21.0"
pyproject-flake8 = "^6.1.0"
pytest-django = "^4.8.0"
selenium = "^4.20.0"
tblib = "^2.0.0"
[tool.poetry.scripts]
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]
[tool.flake8]
# E203: Whitespace before ':', used to please Black in `yield items[i : i + n]`
# E266: Too many leading '#' for block comment
# W503: Line break occurred before a binary operator
max-line-length = 119
ignore = "E203, E266, W503"
max-complexity = 10
exclude = [
".git",
"__pycache__",
"migrations"
]
[tool.isort]
combine_as_imports = true
ensure_newline_before_comments = true
force_grid_wrap = 0
include_trailing_comma = true
known_first_party = "lemarche"
lines_after_imports = 2
line_length = 119
multi_line_output = 3
use_parentheses = true
[tool.black]
line-length = 119
target-version = ['py310']
include = '\.pyi?$'
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "lemarche.settings.test"
[tool.poe.tasks]
export = { shell = "poetry export --without-hashes --output requirements/staging.txt" }
export_dev = { shell = "poetry export --without-hashes --with dev --output requirements/dev.txt" }
flake8 = { shell = "pflake8 lemarche" }
isort = { shell = "isort ./lemarche/*.py" }
black = { shell = "black lemarche" }
clean_code = ["isort", "black"]
clean = { shell = "rm -r __pycache__/" }