forked from buildbot/buildbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
89 lines (74 loc) · 2.57 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
[tool.ruff]
line-length = 100
target-version = "py38"
[tool.ruff.lint]
select = ["W", "E", "F", "I", "PL", "UP", "T100", "B"]
ignore = [
"E711", # comparison to None should be 'if cond is None:'
"E712", # comparison to False should be 'if cond is False:' or 'if not cond:'
"E721", # do not compare types, use 'isinstance()'
"E731", # do not assign a lambda expression, use a def
"E741", # ambiguous variable name
"E501", # line too long (we rely on ruff format for that)
"PLR0904", # too-many-public-methods
"PLR0911", # too-many-return-statements
"PLR0911", # too-many-return-statements
"PLR0912", # too-many-branches
"PLR0913", # too-many-arguments
"PLR0914", # too-many-locals
"PLR0915", # too-many-statements
"PLC0415", # import-outside-toplevel
"PLW0603", # global-statement
"PLW1501", # bad-open-mode
"PLR1711", # useless-return
"PLW1514", # unspecified-encoding
"PLR5501", # collapsible-else-if
# maybe we should fix these?
"PLR2004", # magic-value-comparison
"PLW2901", # redefined-loop-name
"UP027", # unpacked-list-comprehension Deprecated, see: https://github.com/astral-sh/ruff/issues/12754
"B007", # unused-loop-control-variable
]
[tool.ruff.lint.isort]
force-single-line = true
known-first-party = ["buildbot", "buildbot_worker"]
[tool.ruff.format]
preview = true # needed for quote-style
quote-style = "preserve"
[tool.towncrier]
package = "buildbot"
package_dir = "master"
directory = "newsfragments"
filename = "master/docs/relnotes/index.rst"
template = "master/docs/relnotes.rst.jinja"
title_format = "{name} ``{version}`` ( ``{project_date}`` )"
[[tool.towncrier.section]]
path = ""
[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true
[[tool.towncrier.type]]
directory = "change"
name = "Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bug fixes"
showcontent = true
[[tool.towncrier.type]]
directory = "doc"
name = "Improved Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "removal"
name = "Deprecations and Removals"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "Misc"
showcontent = false
[tool.mypy]
python_version = "3.8"
namespace_packages = true
plugins = "mypy_zope:plugin"