-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruff.toml
66 lines (65 loc) · 1.77 KB
/
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
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
lint.select = [
'ALL',
]
lint.ignore = [
# ignore flake8-annotations since python 2.7 is supported
'ANN',
# exception chaining not supported in python 2.7
'B904',
# zip does not have a strict option in python 2.7
'B905',
# various cases in the code where catching all exceptions is desired
'BLE',
# we are a bit complex for now
'C90',
# ignore pydocstyle
'D',
# flexible file system usage (suppress execute flag check)
'EXE002',
# imports are sorted lexicographically in this project
'FBT002',
# imports are sorted lexicographically in this project
'I001',
# multiple cases of constants
'N806',
# permit import aliases with case changes
'N812',
'N813',
# ignore errors for python test scripts with dashes in their filenames
'N999',
# ignore "too many" warnings
'PLR0911',
'PLR0912',
'PLR0913',
'PLR0915',
# ignore loop variable overrides
'PLW2901',
# we have some desired usages of global variables
'PLW0603',
# project uses unittest module
'PT',
# pathlib not supported in python 2.7
'PTH',
# single quotes are preferred in this project
'Q000',
'Q001',
# unpacking a collection literal not supported pre-python 3.5
'RUF005',
# annotated class attributes not supported pre-python 3.5
'RUF012',
# use of asserts are acceptable for this tool
'S101',
# flexible subprocess calls per design
'S602',
'S603',
# some formats are preferred for code readability
'SIM102',
'SIM114',
'SIM117',
# suppress not supported in python 2.7 is supported
'SIM105',
# ignore flake8-print since we support/expect printing
'T20',
# ignore pyupgrade since python 2.7 is supported
'UP',
]