-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
76 lines (66 loc) · 1.83 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
[tool.poetry]
name = "rapidpro-dash"
version = "1.16.0"
description = "Support library for RapidPro dashboards"
authors = ["Nyaruka Ltd <code@nyaruka.com>"]
license = "BSD"
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Framework :: Django",
]
packages = [
{ include = "dash" },
]
[tool.poetry.urls]
repository = "http://github.com/rapidpro/dash"
[tool.poetry.dependencies]
python = "^3.10"
Django = ">= 5.0.8, < 5.2"
celery = "^5.1"
django-compressor = "^4.0"
django-redis = "^5.2.0"
django-timezone-field = "^6.1.0"
Pillow = ">=9.4,<11.0"
phonenumbers = "^8.12.16"
psycopg = "^3.1.9"
python-dateutil = "^2.8.2"
rapidpro-python = "^2.15.0"
smartmin = "^5.0.8"
sorl-thumbnail = "^12.9.0"
isort = {extras = ["pyproject"], version = "^5.10.1"}
[tool.poetry.dev-dependencies]
black = "^24.3.0"
isort = "^5.13.2"
colorama = "^0.4.3"
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
fix = true
exclude = ["./.tox/*", "./.venv/*", "./env/*", "*/migrations/*", "./build/*"]
[tool.ruff.lint]
select = ["E", "F", "W"]
ignore = ["E501", "F405"]
[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.coverage.run]
source = ["dash"]
[tool.coverage.report]
omit = ["*/migrations/*", "*/tests*", "*__init__*", "*settings*", "*management/commands*", "dash/test.py"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"