-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruff.toml
80 lines (75 loc) · 1.31 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
line-length = 120
target-version = "py312"
show-fixes = true
include = ["*.py"]
[lint]
fixable = ["ALL"]
ignore = ["COM812", "ISC001", "PLR2004", "SIM117", "S311", "B008"]
select = [
# Pyflakes
"F",
# Pycodestyle
"E",
"W",
# isort
"I",
# pep8-naming
"N",
# flake8 - async, bandit, bugbear, builtins, commas, comprehensions
"ASYNC",
"S",
"B",
"A",
"COM",
"C4",
# flake8 - implicit-str-concat, import-conventions, logging-format, print, pyi, pytest-style
"ISC",
"ICN",
"G",
"T20",
"PYI",
"PT",
# flake8 - quotes, return, self, simplify, tidy-imports
"Q",
"Q000",
"Q003",
"RET",
"SLF",
"SIM",
"TID",
# Pylint
"PL",
]
[format]
quote-style = "double"
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".idea",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
[lint.flake8-quotes]
docstring-quotes = "double"