forked from virt-manager/virt-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
119 lines (116 loc) · 2.68 KB
/
Copy pathpyproject.toml
File metadata and controls
119 lines (116 loc) · 2.68 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
[tool.black]
line-length = 100
include = '(\.py|^/virt-(clone|install|manager|xml))$'
[tool.ruff]
line-length = 100
builtins = [
# builtin functions installed by gettext
'_',
'ngettext',
]
extend-include = [
'*/virt-clone',
'*/virt-install',
'*/virt-manager',
'*/virt-xml',
]
[tool.ruff.lint]
dummy-variable-rgx = '(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_|ignore.*|.*_ignore'
select = [
# flake8-builtins
'A',
# flake8-debugger
'T10',
# flake8-gettext
'INT',
# flake8-implicit-str-concat
'ISC',
# flake8-import-conventions
'ICN',
# flake8-logging
'LOG',
# flake8-logging-format
'G',
# flake8-no-pep420
'INP',
# flake8-pytest-style
'PT',
# flake8-quotes
'Q',
# flake8-slots
'SLOT',
# flynt
'FLY',
# pycodestyle
'E',
'W',
# Pyflakes
'F',
# pygrep-hooks
'PGH',
# Pylint
'PLE',
]
[tool.ruff.lint.extend-per-file-ignores]
'tests/**.py' = [
# `pytest.raises(...)` is too broad, set the `match` parameter or use a more specific exception
'PT011',
# `pytest.raises()` block should contain a single simple statement
'PT012',
]
'tests/__init__.py' = [
# Module level import not at top of file
'E402',
# `...` imported but unused; consider removing, adding to `__all__`, or using a redundant alias
'F401',
]
'tests/test_cli.py' = [
# Line too long
'E501',
]
'tests/uitests/lib/__init__.py' = [
# `...` imported but unused; consider removing, adding to `__all__`, or using a redundant alias
'F401',
]
'tests/uitests/lib/_dogtailinit.py' = [
# Module level import not at top of file
'E402',
]
'virtManager/details/viewers.py' = [
# Module level import not at top of file
'E402',
]
'virtManager/lib/inspection.py' = [
# `guestfs` imported but unused; consider using `importlib.util.find_spec` to test for availability
'F401',
]
'virtManager/virtmanager.py' = [
# Module level import not at top of file
'E402',
]
'virtManager/xmleditor.py' = [
# Module level import not at top of file
'E402',
]
'virtinst/__init__.py' = [
# Module level import not at top of file
'E402',
# `...` imported but unused; consider removing, adding to `__all__`, or using a redundant alias
'F401',
# `from ... import *` used; unable to detect undefined names
'F403',
]
'virtinst/devices/__init__.py' = [
# `...` imported but unused; consider removing, adding to `__all__`, or using a redundant alias
'F401',
]
'virtinst/domain/__init__.py' = [
# `...` imported but unused; consider removing, adding to `__all__`, or using a redundant alias
'F401',
]
'virtinst/guest.py' = [
# `from ... import *` used; unable to detect undefined names
'F403',
# `...` may be undefined, or defined from star imports
'F405',
]