-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyproject.toml
53 lines (47 loc) · 1.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
[tool.towncrier]
# package should be "collective.recipe.backup", but that cannot be imported.
# See https://github.com/hawkowl/towncrier/issues/111
# We cheat here because we do not really need the package name:
package = "towncrier"
issue_format = "`Issue #{issue} <https://github.com/collective/collective.recipe.backup/issues/{issue}>`_"
filename = "CHANGES.rst"
directory = "news/"
title_format = "{version} ({project_date})"
# First underline is used for version/date header.
# Second underline is used for the type names (like 'Bug fixes:').
underlines = ["=", ""]
[[tool.towncrier.type]]
directory = "breaking"
name = "Breaking changes:"
showcontent = true
[[tool.towncrier.type]]
directory = "feature"
name = "New features:"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bug fixes:"
showcontent = true
[tool.isort]
profile = "black"
force_alphabetical_sort = true
force_single_line = true
lines_after_imports = 2
[tool.flakeheaven.plugins]
# Disable some checks.
# - E203 whitespace before ':'
# black does this differently
# - E501 line too long
# we use the line length of black, so pycodestyle should not test it.
# - W503 line break before binary operator
# Outdated recommendation, see https://www.flake8rules.com/rules/W503.html
mccabe = ["+*"]
pycodestyle = ["+*", "-E203", "-E501", "-W503"]
pyflakes = ["+*"]
pylint = ["+*"]
[tool.plone-code-analysis]
# No zpretty
checkers = ["black", "flake8", "isort", "pyroma",]
formatters = ["black", "isort",]
paths = "src/ setup.py"
paths_pyroma = "."