generated from nvdaaddons/AddonTemplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ruff.toml
40 lines (38 loc) · 813 Bytes
/
ruff.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
builtins = [
"_", # translation lookup
"ngettext", # translation lookup
"pgettext", # translation lookup
"npgettext", # translation lookup
]
logger-objects = ["logHandler.log"]
exclude = [ # don't bother looking in the following subdirectories / files.
".git",
"__pycache__",
]
ignore = [
"W191", # indentation contains tabs
]
line-length = 110
#preview = true
select = [
"A", # flake8-builtins
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"C90", # mccabe
"E", # pycodestyle Error
"F", # Pyflakes
"FIX", # flake8-fixme
"I", # isort
"INT", # flake8-gettext
"UP", # pyupgrade
"W", # pycodestyle Warning
]
show-source = true
src = ["addon"]
target-version = "py37"
[mccabe]
max-complexity = 15
[format]
line-ending = "auto"
quote-style = "double"
indent-style = "tab"