-
Notifications
You must be signed in to change notification settings - Fork 318
Expand file tree
/
Copy pathpyproject.toml
More file actions
52 lines (46 loc) · 1.08 KB
/
Copy pathpyproject.toml
File metadata and controls
52 lines (46 loc) · 1.08 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
[build-system]
requires = ["pbr>=6.0.0", "setuptools>=64.0.0"]
build-backend = "pbr.build"
[tool.autopep8]
aggressive = 3
in-place = true
recursive = true
ignore = ["E731"]
[tool.codespell]
skip = "*.po,*.js,*.css,*.html,*.svg,HACKING.py,*hacking*,*build*,*_static*,doc/dictionary.txt,*.pyc,*.inv,*.gz,*.jpg,*.png,*.vsd,*.graffle,*.json,*telemetry-measurements.rst"
count = true
quiet-level = 4
[tool.ruff]
line-length = 79
[tool.ruff.lint]
select = [
# mcabe complexity checks
"C90",
# multiple-imports-on-one-line, module-import-not-at-top-of-file
"E4",
# line-too-long, redundant-backslash
"E5",
"E7",
"E9",
# pyflakes
"F",
"G",
"LOG",
"S",
"UP",
"W",
]
external = ["H"]
ignore = [
# UP031 % format — defer f-string migration to a later pass
"UP031",
# UP032 f-string — defer migration to a later pass
"UP032",
]
[tool.ruff.lint.per-file-ignores]
"doc/*" = ["E501"]
"ceilometer/tests/*" = ["S"]
"tools/*" = ["S"]
[tool.ruff.lint.mccabe]
# Flag errors (`C901`) whenever the complexity level exceeds 25.
max-complexity = 25