-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathruff.toml
47 lines (35 loc) · 932 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
respect-gitignore = true
show-fixes = true
# Same as Black.
line-length = 88
indent-width = 4
target-version = "py311"
[lint]
# Check all of the rules.
select = ["ALL"]
ignore = [
"N999", # invalid-module-name (The Last Airbender is not a valid module name).
"D", # pydocstyle (All the missing docs).
"CPY", # flake8-copyright (Missing copyright declarations).
"EM", # flake8-errmsg (Unecessary headech).
]
# Enable preview features.
preview = true
[lint.per-file-ignores]
"test/*" = [
"S101", # assert
"FBT001", # boolean-type-hint-positional-argument
]
"tlab/earth_bender.py" = [
"T201", # print
]
[format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
docstring-code-line-length = 88
docstring-code-format = true
line-ending = "native"
# Enable preview style formatting.
preview = true