forked from gip-inclusion/le-marche
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
104 lines (95 loc) · 2.62 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
[tool.poetry]
name = "lemarche"
description = "Marché de l'inclusion"
version = "1.0"
authors = []
[tool.poetry.dependencies]
boto = "^2.49.0"
boto3 = "^1.20.24"
crawlerdetect = "0.1.5"
django = "4.2.2"
django-admin-list-filters = "^1.1"
django-anymail = "8.6"
django-better-admin-arrayfield = "^1.4.2"
django-bootstrap4 = "^23.0"
django-ckeditor = "6.5.1"
django-compressor = "4.1"
django-cors-headers = "3.13.0"
django-environ = "0.9.0"
django-extensions = "^3.2.0"
django-fieldsets-with-inlines = { git = "https://github.com/raphodn/django-fieldsets-with-inlines.git", branch = "master" }
django-filter = "21.1"
django-formtools = "^2.3"
django-htmx = "^1.12.2"
django-libsass = "0.9"
django-select2 = "^7.10.1"
django-sesame = "^3.2.1"
django-storages = "^1.13.1"
djangorestframework = "^3.14.0"
drf-spectacular = "^0.26.0"
elastic-apm = "^6.10.1"
hubspot-api-client = "^6.1.0"
huey = "2.4.4"
ipython = "^8.14.0"
psycopg2-binary = "2.9.5"
PyMySQL = "1.0.2"
python = "^3.10.4"
python-stdnum = "1.17"
redis = "^3.5.3"
requests = "^2.27.1"
sentry-sdk = "1.25.1"
wagtail = "^5.0.2"
whitenoise = "6.3.0"
xlwt = "1.3.0"
sib-api-v3-sdk = "^7.6.0"
shortuuid = "^1.0.11"
openai = "^0.28.1"
[tool.poetry.group.dev.dependencies]
black = "22.10.0"
coverage = "7.2.0"
django-debug-toolbar = "^3.8.1"
factory-boy = "3.2.1"
flake8 = "3.9.2"
ipdb = "^0.13.9"
isort = "^5.12.0"
poethepoet = "0.12.2"
pre-commit = "2.20.0"
pyproject-flake8 = "0.0.1a2"
pytest-django = "4.5.2"
selenium = "^4.10.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
[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__/" }