forked from torchbox/wagtail-footnotes
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
147 lines (124 loc) · 3.51 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
[project]
name = "wagtail-footnotes"
description = "Add footnotes to rich text in your Wagtail pages"
authors = [{name = "Cameron Lamb ", email = "[email protected]"}]
maintainers = [
{name = "Kevin Howbrook", email="[email protected]"},
{name = "Dan Braghis", email="[email protected]"}
]
readme = "README.md"
license = {file = "LICENSE"}
keywords = ["Wagtail", "Django", "footnotes", "rich text"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"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",
"Programming Language :: Python :: 3.12",
"Framework :: Django",
"Framework :: Django :: 3",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Wagtail",
"Framework :: Wagtail :: 4",
"Framework :: Wagtail :: 5",
]
dynamic = ["version"] # will read __version__ from wagtail_footnotes/__init__.py
requires-python = ">=3.8"
dependencies = [
"Wagtail>=4.1",
"Django>=3.2",
]
[project.optional-dependencies]
testing = [
"pre-commit>=3.3.0,<4",
"tox>=4.6.4,<5",
"black==23.7.0",
"ruff==0.0.280",
"coverage[toml]>=7.2,<8.0",
]
[project.urls]
Repository = "https://github.com/torchbox/wagtail-footnotes"
Changelog = "https://github.com/torchbox/wagtail-footnotes/blob/main/CHANGELOG.md"
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[tool.flit.module]
name = "wagtail_footnotes"
[tool.flit.sdist]
exclude = [
"tests",
"Makefile",
"docs",
".*",
"*.json",
"*.ini",
"*.yml",
"CHANGELOG.md",
"testmanage.py",
]
[tool.black]
line_length = 88
target-version = ["py38"]
[tool.ruff]
target-version = "py38"
extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"DJ", # flake8-django
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"PGH", # pygrep-hooks
"S", # flake8-bandit
"SIM", # flake8-simplify
"W", # pycodestyle warnings
"YTT", # flake8-2020
"UP", # pyupgrade
"RUF100", # unused noqa
]
# Never enforce `E501` (line length violations).
ignore = ["E501"]
[tool.ruff.isort]
known-first-party = ["src"]
lines-between-types = 1
lines-after-imports = 2
[tool.coverage.run]
branch = true
concurrency = ["multiprocessing", "thread"]
parallel = true
source = ["wagtail_footnotes"]
omit = ["**/migrations/*", "tests/*"]
[tool.coverage.paths]
source = ["wagtail_footnotes", ".tox/py*/**/site-packages"]
[tool.coverage.report]
show_missing = true
ignore_errors = true
skip_empty = true
skip_covered = true
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"if self.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc.)?abstractmethod",
# Nor complain about type checking
"if TYPE_CHECKING:",
]