-
Notifications
You must be signed in to change notification settings - Fork 4
/
.ruff.toml
44 lines (39 loc) · 834 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
41
42
43
44
target-version = "py310"
line-length = 100
extend-exclude = ["liberty_script"]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
'UP', # pyupgrade
'A', # flake8-builtins
"C4", # flake8-comprehensions
'EXE', # flake8-executable
'FA', # flake8-future-annotations
'PT', # flake8-pytest-style
'RSE', # flake8-raise
'SIM', # flake8-simplify
'DTZ', # flake8-datetimez, https://beta.ruff.rs/docs/rules/#flake8-datetimez-dtz
]
ignore = [
'A003',
'E501',
'E711',
'E712',
'E741',
'F401', # unused imports
'F841',
'PT004',
'SIM102',
'SIM105',
'SIM108',
'SIM115',
]
[format]
quote-style = "single"
[isort]
known-first-party = ["ssh_lib"]
lines-after-imports = 2
[flake8-comprehensions]
allow-dict-calls-with-keyword-arguments = true