-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
.ruff.toml
45 lines (42 loc) · 978 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
target-version = "py310" # Pin Ruff to Python 3.10
line-length = 95
output-format = "full"
[lint]
preview = true
select = [
"C4",
"B", # flake8-bugbear
"E", # pycodestyle
"EM", # flake8-errmsg
"F", # pyflakes
"FA", # flake8-future-annotations
"FLY", # flynt
"FURB",# refurb
"G", # flake8-logging-format
"I", # isort
"LOG", # flake8-logging
"N", # pep8-naming
"PERF",# perflint
"PGH", # pygrep-hooks
"PT", # flake8-pytest-style
"TCH", # flake8-type-checking
"UP", # pyupgrade
"W", # pycodestyle
]
ignore = [
"E722", # do not use bare 'except'
"E741", # ambiguous variable name
]
[lint.per-file-ignores]
"test/sample-default-supressed.py" = [
"N999", # invalid module name
]
"test/sample-directive-opts.py" = [
"N999", # invalid module name
]
"test/sample-directive-special.py" = [
"N999", # invalid module name
]
[format]
preview = true
quote-style = "single"