-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
159 lines (143 loc) · 3.79 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
154
155
156
157
158
159
[build-system]
build-backend = "poetry.core.masonry.api"
requires = [
"poetry @ git+https://github.com/radoering/poetry.git@pep621-support" # TODO: update to official poetry later
]
[project]
authors = [
{email = "[email protected]", name = "Huy Nguyen"}
]
classifiers = [
"Environment :: Web Environment",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.9",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development"
]
dependencies = [
"Django>=4",
"Unidecode",
"django-admin-interface",
"django-admin-sortable2",
"django-filter",
"django-import-export",
"django-localized-fields",
"django-reversion",
"django-solo",
"djangorestframework>=3",
"drf_spectacular",
"martor",
"psycopg"
]
description = "A simple django-based headless CMS."
dynamic = ["version"]
name = "django-headless-cms"
readme = "README.md"
requires-python = ">=3.9,<4.0"
license.file = "LICENSE"
[project.optional-dependencies]
openai = ["openai>=1"]
[project.urls]
Documentation = "https://django-headless-cms.readthedocs.io/"
Homepage = "https://github.com/huynguyengl99/django-headless-cms"
Repository = "https://github.com/huynguyengl99/django-headless-cms"
[tool.black]
exclude = '''
/(
\.git
| \.pytest_cache
| \.vscode
| __pycache__
| .venv
| build
| coverage
)/
'''
line-length = 88
preview = true
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
update_changelog_on_bump = true
version_provider = "poetry"
version_scheme = "pep440"
[tool.commitizen.customize]
bump_map = {build = "PATCH", ci = "PATCH", docs = "PATCH", feat = "MINOR", fix = "PATCH", perf = "PATCH", refactor = "PATCH"}
bump_pattern = '^(feat|fix|ci|build|perf|refactor|docs)'
schema_pattern = '^(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert|bump)(\(\S+\))?\:?\s.*'
[tool.coverage.run]
omit = [
"headless_cms/contrib/*",
"headless_cms/fields/boolean_field.py", # Just a small fix
"headless_cms/utils/martor_custom_upload.py",
"tests/*"
]
[tool.poetry]
name = 'headless_cms'
packages = [
{include = "headless_cms"}
]
version = "1.1.0"
[tool.poetry.group.dev.dependencies]
commitizen = "^3.27.0"
[tool.poetry.group.docs.dependencies]
Sphinx = ">=7.0.0,<8"
sphinx_rtd_theme = "*"
[tool.poetry.group.lint.dependencies]
black = "*"
pre-commit = ">=3.4.0,<4.0.0"
ruff = "*"
toml-sort = "*"
[tool.poetry.group.test.dependencies]
coverage = {extras = ['toml'], version = "*"}
django-environ = "*"
django-extensions = "*"
factory-boy = "*"
freezegun = "*"
openai = ">=1"
pytest = "*"
pytest-cov = "*"
pytest-django = "*"
pytest-mock = "*"
[tool.ruff]
src = ["headless_cms", 'tests']
[tool.ruff.lint]
ignore = [
"E501" # line too long, handled by black
]
select = [
"B", # flake8-bugbear
"C", # flake8-comprehensions
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"PL", # pylint
"Q", # flake8-quotes
"UP", # pyupgrade
"W" # pycodestyle warnings
]
[tool.ruff.lint.per-file-ignores]
"*" = ['C901']
"tests/*" = ["PLR0913", "PLR2004"]
"tests/test_utils/base.py" = ["N802"]
[tool.tomlsort]
all = true
in_place = true
spaces_before_inline_comment = 2