-
-
Notifications
You must be signed in to change notification settings - Fork 60
/
.ruff.toml
49 lines (41 loc) · 966 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
45
46
47
48
target-version = "py310"
line-length = 100
extend-exclude = ["temp"]
lint.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
]
lint.ignore = [
'A003',
'E501',
'E711',
'E712',
# 'E721', # type comparison
'E741',
'F401', # unused imports
'F841',
'PT004',
'SIM102',
'SIM105',
'SIM108',
'SIM115',
'DTZ007', # Naive datetime constructed using `datetime.datetime.strptime()` without %z
]
[format]
quote-style = "single"
[lint.isort]
known-first-party = ["ssh_lib"]
lines-after-imports = 2
[lint.flake8-comprehensions]
allow-dict-calls-with-keyword-arguments = true