forked from rapidpro/rapidpro
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpyproject.toml
More file actions
144 lines (129 loc) · 3.2 KB
/
Copy pathpyproject.toml
File metadata and controls
144 lines (129 loc) · 3.2 KB
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[project]
name = "temba"
version = "26.0.0"
description = "Hosted service for visually building interactive messaging applications"
authors = [
{"name" = "Nyaruka", "email" = "code@nyaruka.com"}
]
readme = "README.md"
requires-python = ">=3.12,<3.13"
dependencies = [
"psycopg[pool] ~= 3.2.9",
"django ~= 5.2.9",
"django-allauth[mfa] (>=65.8.1,<66.0.0)",
"django-compressor ~= 4.5.1",
"django-countries ~= 7.6.1",
"django-formtools ~= 2.5.1",
"django-imagekit ~= 5.0.0",
"django-mptt ~= 0.16.0",
"django-storages ~= 1.14.6",
"django-timezone-field ~= 6.1.0",
"django-valkey (>=0.2.1,<0.3.0)",
"djangorestframework ~= 3.16.0",
"dj-database-url ~= 0.5.0",
"smartmin ~= 5.2.2",
"celery[redis] ~= 5.5.3",
"boto3 ~= 1.38.36",
"cryptography ~= 45.0.4",
"pyotp ~= 2.4.1",
"geojson ~= 2.5.0",
"markdown ~= 3.8.0",
"polib ~= 1.2.0",
"python-magic ~= 0.4.27",
"xlsxlite ~= 1.0.0",
"colorama ~= 0.4.6",
"gunicorn (>=23.0.0,<24.0.0)",
"iptools ~= 0.7.0",
"iso8601 ~= 2.1.0",
"iso639-lang ~= 2.6.0",
"phonenumbers ~= 9.0.7",
"pycountry ~= 24.6.1",
"python-dateutil ~= 2.9.0",
"packaging ~= 25.0",
"requests-toolbelt ~= 1.0.0",
"chardet ~= 5.2.0",
"openpyxl ~= 3.1.5",
"ffmpeg-python ~= 0.2.0",
"pillow ~= 10.4.0",
"google-auth ~= 2.32.0",
"google-genai (>=1.10.0,<2.0.0)",
"twilio ~= 9.3.7",
"vonage ~= 3.17.4",
"slack-sdk ~= 3.17.0",
"openai (>=1.66.3,<2.0.0)",
"anthropic (>=0.54.0,<1.0.0)",
"fido2 (>=2.0.0,<3.0.0)"
]
[project.urls]
repository = "http://github.com/rapidpro/rapidpro"
[tool.poetry.dependencies]
python = "~3.12"
django-redis = "^4.12.1"
redis = "^5.2.0"
iso639-lang = "^2.2.3"
[tool.poetry.group.dev.dependencies]
black = "^24.4.2"
coverage = { extras = ["toml"], version = "^7.5.4" }
isort = "^5.13.2"
responses = "^0.25.3"
ruff = "^0.5.0"
djlint = "^1.34.1"
[tool.poetry.requires-plugins]
poetry-bumpversion = ">=0.3.3"
[tool.poetry_bumpversion.file."temba/__init__.py"]
[tool.black]
line-length = 120
[tool.ruff]
line-length = 120
fix = true
[tool.ruff.lint]
select = ["E", "F", "W"]
ignore = ["E741", "E501", "F405"]
[tool.isort]
multi_line_output = 3
force_grid_wrap = 0
line_length = 120
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,element,slot"
custom_html = "temba-[a-z-]+"
format_css = true
format_js = true
ignore = "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 = ["./temba"]
[tool.coverage.report]
ignore_errors = true
precision = 0
show_missing = true
skip_covered = true
exclude_lines = [
"pragma: no cover",
"pragma: needs cover",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
]
omit = ["**/tests*", "**/tests/*", "*settings*", "**/management/commands/*"]
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"