forked from openhwfoundation/cvw
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.ruff.toml
More file actions
36 lines (32 loc) · 1.06 KB
/
Copy path.ruff.toml
File metadata and controls
36 lines (32 loc) · 1.06 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
# Lint all .py files and extra python scripts without extensions
extend-exclude = [
"addins/**",
]
# Target oldest version of Python used (Python 3.9 for Ubuntu 20.04 LTS)
target-version = "py39"
line-length=250
[lint]
select = [
"F", # various basic rules (pyflakes)
"E", # errors (pycodestyle)
"W", # warnings (pycodestyle)
"I", # Import related rules (isort)
"UP", # Upgraded version available in newer Python
"B", # bugbear rules
"A", # shadow builtins
"EXE", # Executable file shebangs
"Q003", # Avoidable escaped quotes
"Q004", # Unnecessary esacpe character
"RUF", # Ruff specific rules
]
ignore = [
"E501", # line too long
"E701", "E702", # multiple statements on one line
"E722", # do not use bare 'except'
"E741", # ambiguous variable name
"W291", # trailing whitespace
"W293", # blank line contains whitespace
"B007", # loop control variable not used
"B9", # overly opinionated rules
"RUF005", # iterable unpacking in list
]