forked from buildbot/buildbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
157 lines (138 loc) · 3.86 KB
/
pyproject.toml
File metadata and controls
157 lines (138 loc) · 3.86 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["W", "E", "F", "I", "PL", "UP", "T100", "B", "RUF", "FA", "TC"]
ignore = [
"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)
"PLR0911", # too-many-return-statements
"PLR0912", # too-many-branches
"PLR0913", # too-many-arguments
"PLR0915", # too-many-statements
"PLW0603", # global-statement
"PLR1711", # useless-return
"PLR5501", # collapsible-else-if
# maybe we should fix these?
"PLR2004", # magic-value-comparison
"PLW2901", # redefined-loop-name
"B007", # unused-loop-control-variable
# Might be nice to have in future, but requires significant refactoring for now.
"RUF012", # mutable-class-default
# See: https://github.com/buildbot/buildbot/pull/8418#issuecomment-2869007629
# quoted types in cast should be considered on a case by case basis
# rather than enforced.
"TC006", # runtime-cast-value
]
[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 = true
[tool.mypy]
python_version = "3.9"
namespace_packages = true
pretty = true
warn_redundant_casts = true
disallow_untyped_calls = false
disallow_untyped_defs = true
warn_unused_ignores = true
no_implicit_optional = true
mypy_path = ["$MYPY_CONFIG_FILE_DIR/master", "$MYPY_CONFIG_FILE_DIR/worker"]
plugins = "mypy_zope:plugin"
[[tool.mypy.overrides]]
module = [
"setuptools.*",
"lz4.*",
"brotli.*",
"markdown.*",
"dateutil.*",
"yaml.*",
"psutil.*",
"pywintypes.*",
"win32api.*",
"win32con.*",
"servicemanager.*",
"win32file.*",
"win32pipe.*",
"win32service.*",
"win32serviceutil.*",
"pythoncom.*",
"win32event.*",
"win32process.*",
"win32security.*",
"win32com.*",
"winerror.*",
"msgpack.*",
"autobahn.*",
"requests.*",
"unidiff.*",
"croniter.*",
"aiohttp.*",
"hvac.*",
"influxdb.*",
"evalidate.*",
"txrequests.*",
"subunit.*",
"parameterized.*",
"win32job.*",
"ldap3.*",
"keystoneauth1.*",
"novaclient.*",
"libvirt.*",
"boto3.*",
"botocore.*",
"docker.*",
"txaio.*",
"dnotify.*",
"treq.*",
"xerox.*",
"ruamel.*",
"urllib3.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"buildbot.process.buildstep",
]
disallow_untyped_calls = false
[[tool.mypy.overrides]]
module = [
"buildbot.scripts.base",
"buildbot.util.path_expand_user",
]
warn_unused_ignores = false