-
Notifications
You must be signed in to change notification settings - Fork 35
/
pyproject.toml
94 lines (81 loc) · 2.02 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
[tool.poetry]
name = "ureport"
version = "1.2.136"
description = "U-Report dashboard built on data collected by RapidPro"
authors = ["Nyaruka Ltd <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "~3.12.0"
Django = "~5.1.0"
smartmin = "^5.1.0"
rapidpro-dash = "~1.16.0"
colorama = "^0.4.3"
celery = "^5.1"
django-compressor = "^4.0"
django-debug-toolbar = "^4.4.6"
django-digest = "^1.13"
django-rosetta = "^0.8.1"
django-storages = "^1.13.2"
djangorestframework = "~3.15.2"
dj-database-url = "^0.5.0"
Pillow = "^10.2.0"
gunicorn = "^22.0.0"
sentry-sdk = "^2.8.0"
django-redis = "^5.2.0"
psycopg = "^3.1.9"
xlutils = "^2.0.0"
mock = "^2.0.0"
pycountry = "^18.5.26"
django-countries = "^7.2.1"
regex = "^2023.8.8"
rapidpro-python = "^2.15.0"
feedparser = "^6.0.2"
Markdown = "^2.6.11"
iso8601 = "^0.1.12"
sorl-thumbnail = "^12.9.0"
stop_words = "^2018.7.23"
boto3 = "^1.27.1"
drf-yasg = "^1.21.8"
[tool.poetry.dev-dependencies]
black = "^24.3.0"
isort = "^5.13.2"
coverage = {extras = ["toml"], version = "^7.2.2"}
ruff = "^0.3.3"
djlint = "^1.34.1"
[tool.black]
line-length = 119
[tool.ruff]
line-length = 120
lint.select = ["E", "F", "W"]
lint.ignore = ["E501", "F405"]
fix = true
exclude = ["./.tox/*", "./.venv/*", "./env/*", "*/migrations/*", "./build/*"]
[tool.isort]
multi_line_output = 3
force_grid_wrap = 0
line_length = 119
include_trailing_comma = true
combine_as_imports = true
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "DJANGO", "FIRSTPARTY", "LOCALFOLDER"]
known_django = ["django"]
[tool.djlint]
blank_line_after_tag = "load"
custom_blocks = "render"
format_css = true
format_js = true
ignore = "H006,H019,H021,H023"
indent = 2
max_attribute_length = 100
max_line_length = 200
[tool.djlint.css]
indent_size = 2
[tool.djlint.js]
indent_size = 2
templating = "django"
[tool.coverage.run]
source = ["ureport"]
[tool.coverage.report]
omit = ["*/migrations/*", "*/tests*", "*__init__*", "*settings*", "*management/commands*"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"