-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
153 lines (139 loc) · 3.67 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
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
145
146
147
148
149
150
151
152
153
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "ai-django-core"
authors = [{name = "Ambient Innovation: GmbH", email = "[email protected]"}]
readme = "README.md"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Utilities",
]
dynamic = ["version", "description"]
license = {"file" = "LICENSE.md"}
dependencies = [
'Django>=2.2.28',
'bleach>=1.4,<6',
'python-dateutil>=2.5.3',
'html2text>=2020.1.16',
]
[project.optional-dependencies]
dev = [
'freezegun',
'gevent',
'pre-commit',
'pytest-cov',
'pytest-django',
'pytest-mock',
]
docs = [
'sphinx==4.2.0',
'sphinx-rtd-theme==1.0.0',
'm2r2==0.3.1',
'mistune<2.0.0', # fixes a problem mit m2r2
]
drf = [
'djangorestframework>=3.8.2',
]
graphql = [
'graphene-django>=2.2.0',
'django-graphql-jwt>=0.2.1',
]
view-layer= [
'django-crispy-forms>=1.4.0',
]
[tool.flit.module]
name = "ai_django_core"
[project.urls]
'Documentation' = 'https://ai-django-core.readthedocs.io/en/latest/index.html'
'Maintained by' = 'https://ambient.digital/'
'Bugtracker' = 'https://github.com/ambient-innovation/ai-django-core/issues'
'Changelog' = 'https://ai-django-core.readthedocs.io/en/latest/features/changelog.html'
[tool.black]
line-length = 120
multi_line_output = 3
skip-string-normalization = true
include_trailing_comma = true
[tool.ruff]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = ["E", "F", "W", "N", "I", "B", "A", "DTZ", "DJ"]
ignore = [
'N999', # Project name contains underscore, not fixable
'A003', # Django attributes shadow python builtins
'DJ001', # Django model text-based fields shouldn't be nullable
'B905', # Can be enabled when Python <=3.9 support is dropped
'DTZ001', # TODO will affect "tz_today()" method
'DTZ005', # TODO will affect "tz_today()" method
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable =["E", "F", "W", "N", "I", "B", "A", "DTZ", "DJ"]
unfixable = []
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"*/migrations/*"
]
# Same as Black.
line-length = 120
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.10.
target-version = "py311"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{38,39,310,311}-django{22,30,31,32,40,41}
isolated_build = True
[testenv]
deps =
django22: Django>=2.2.28,<3.0
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
extras = dev,drf,graphql,view-layer
commands =
pytest --ds settings tests
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
"""