-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathpyproject.toml
More file actions
139 lines (135 loc) · 3.04 KB
/
Copy pathpyproject.toml
File metadata and controls
139 lines (135 loc) · 3.04 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
[build-system]
build-backend = "hatchling.build"
requires = [
"hatchling",
]
[project]
name = "django-prose-editor"
description = "Prose editor for the Django admin based on ProseMirror"
readme = "README.rst"
license = { text = "BSD-3-Clause" }
authors = [
{ name = "Matthias Kestenholz", email = "mk@feinheit.ch" },
]
requires-python = ">=3.10"
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Application Frameworks",
]
dynamic = [
"version",
]
dependencies = [
"django>=4.2",
"django-js-asset>=4",
]
optional-dependencies.cabinet = [
"django-cabinet>=0.19",
]
optional-dependencies.sanitize = [
"nh3>=0.3",
]
optional-dependencies.tests = [
"asgiref",
"coverage",
"nh3>=0.3",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-django",
"pytest-playwright",
]
urls.Documentation = "https://django-prose-editor.readthedocs.io/"
urls.Homepage = "https://github.com/feincms/django-prose-editor/"
[tool.hatch]
version.path = "django_prose_editor/__init__.py"
build.include = [
"django_prose_editor/",
]
[tool.ruff]
target-version = "py311"
fix = true
show-fixes = true
lint.extend-select = [
# flake8-bugbear
"B",
# flake8-comprehensions
"C4",
# mmcabe
"C90",
# flake8-django
"DJ",
"E",
# pyflakes, pycodestyle
"F",
# flake8-boolean-trap
"FBT",
# flake8-logging-format
"G",
# isort
"I",
# flake8-gettext
"INT",
# pep8-naming
"N",
# pygrep-hooks
"PGH",
# flake8-pie
"PIE",
# pylint
"PLC",
"PLE",
"PLW",
# flake8-pytest-style
"PT",
# unused noqa
"RUF100",
# pyupgrade
"UP",
"W",
# flake8-2020
"YTT",
]
lint.extend-ignore = [
# Stop pestering me, the default raise behavior is great
"B904",
# Allow zip() without strict=
"B905",
# No line length errors
"E501",
# Django Meta classes use mutable class attributes by convention
"RUF012",
]
lint.per-file-ignores."*/migrat*/*" = [
# Allow using PascalCase model names in migrations
"N806",
# Ignore the fact that migration files are invalid module names
"N999",
]
lint.isort.combine-as-imports = true
lint.isort.lines-after-imports = 2
lint.mccabe.max-complexity = 15
[tool.pytest]
ini_options.testpaths = [ "tests" ]
ini_options.python_files = "test_*.py"
ini_options.addopts = "--strict-markers"
ini_options.markers = [
"e2e: End-to-end browser tests",
]
ini_options.asyncio_default_fixture_loop_scope = "function"
ini_options.asyncio_mode = "strict"
ini_options.DJANGO_SETTINGS_MODULE = "testapp.settings"