-
Notifications
You must be signed in to change notification settings - Fork 46
/
pyproject.toml
149 lines (134 loc) · 3.46 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
[build-system]
requires = ["setuptools >= 40.6.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "djangocms-snippet"
dynamic = ["version"]
authors = [
{name = "Divio AG", email = "[email protected]"},
]
maintainers = [
{name = "Django CMS Association and contributors", email = "[email protected]"}
]
license = {file = "LICENSE"}
description = "Adds snippet plugin to django CMS."
readme = "README.rst"
requires-python = ">=3.9"
dependencies = [
'django-cms>=3.7',
]
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"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",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.2",
"Framework :: Django CMS",
"Framework :: Django CMS :: 3.8",
"Framework :: Django CMS :: 3.9",
"Framework :: Django CMS :: 3.10",
"Framework :: Django CMS :: 3.11",
"Framework :: Django CMS :: 4.0",
"Framework :: Django CMS :: 4.1",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
]
[project.optional-dependencies]
static-ace = ["djangocms-static-ace"]
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["tests"]
[project.urls]
"Bug Tracker" = "https://github.com/django-cms/djangocms-snippet/issues"
Changelog = "https://github.com/django-cms/djangocms-snippet/blob/master/CHANGELOG.rst"
Repository = "https://github.com/django-cms/djangocms-snippet"
Support = "https://www.django-cms.org/slack/"
[tool.coverage.run]
branch = true
parallel = true
source = [
"djangocms_snippet",
"tests",
]
[tool.coverage.paths]
source = [
"src",
".tox/**/site-packages",
]
[tool.coverage.report]
show_missing = true
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
mypy_path = "src/"
no_implicit_optional = true
show_error_codes = true
warn_unreachable = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "tests.*"
allow_untyped_defs = true
[tool.ruff]
# https://beta.ruff.rs/docs/configuration/
line-length = 120
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"FBT", # flake8-boolean-trap
"B", # flake8-bugbear
"C", # flake8-comprehensions
"DJ", # flake8-django
"INT", # flake8-gettext
"PIE", # flake8-pie
"SIM", # flake8-simplify
"PGH", # pygrep-hooks
"PLE", # pylint error
"PLR", # pylint refactor
"PLW", # pylint warning
"UP", # pyupgrade
"C901", # mccabe
"N", # pep8-naming
"YTT", # flake8-2020,
"RUF"
]
exclude = [
".eggs",
".git",
".mypy_cache",
".ruff_cache",
".env",
".venv",
"**migrations/**",
"venv",
]
lint.ignore = [
"E501", # line-too-long
"W191", # tab-indentation
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401" # unused-import
]
"test_plugins.py" = [
"FBT003", # Boolean positional value in function call
]
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = [
"djangocms_snippet",
]
extra-standard-library = ["dataclasses"]