-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathruff.toml
More file actions
76 lines (71 loc) · 1.47 KB
/
ruff.toml
File metadata and controls
76 lines (71 loc) · 1.47 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
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
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"migrations",
"node_modules",
"site-packages",
"venv",
]
line-length = 88 # like black
target-version = "py310"
fix = true
unsafe-fixes = true
[lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # bugbear
"C4", # comprehensions
"SIM", # simplify
"TID", # tidy imports
"G", # f-string is forbidden
"T", # print is forbidden
"FURB", # Refurb
"ASYNC", # flake8-async
"PERF", # Perflint
"PLE", # pylint (error)
"T10", # flake8-debugger
"EXE", # flake8-executable
"INT", # flake8-gettext
"ISC", # flake8-implicit-str-concat
"PT", # pytest
"LOG", # logging
"S", # bandit
]
ignore = [
"S311", # Random
]
[lint.per-file-ignores]
"*test_*" = ["S101"] # asserts in tests
[lint.isort]
combine-as-imports = true
force-wrap-aliases = true
split-on-trailing-comma = true
[format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false