-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathruff.toml
More file actions
60 lines (51 loc) · 1.26 KB
/
ruff.toml
File metadata and controls
60 lines (51 loc) · 1.26 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
# Copyright (c) Alianza, Inc. All rights reserved.
exclude = [
".venv",
"__pycache__",
".mypy_cache",
".git"
]
# Match black
line-length = 88
indent-width = 4
# Assume Python 3.9
target-version = "py39"
[lint]
extend-select = [
"E",
"I", # isort
"D", # pydocstyle
"S", # security
"ARG", # flake8-unused-arguments
"ANN", # flake8-annotations
]
ignore = [
"D203", # ignore incompatible rules
"D213", # ignore incompatible rules
"D400",
"D401",
"D415",
# Allow long lines if needed
"E501",
# We trust the uses of tar extractall as we generate the tar files ourselves.
"S202",
# Subprocess module imported. Warning to be careful only.
"S404",
# Yaml loader
"S506",
# Subprocess used without shell=True. Warning to be careful only.
"S603",
# Starting a process with a partial executable path
"S607",
]
[lint.extend-per-file-ignores]
"tests/*" = ["S", "D"]
[format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"