-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
46 lines (46 loc) · 1.16 KB
/
ruff.toml
File metadata and controls
46 lines (46 loc) · 1.16 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
target-version = "py314"
line-length = 100
indent-width = 4
include = ["chearttest"]
exclude = [".venv", "**/build"]
preview = false
per-file-ignores = { "tests/**/*.py" = ["S101"] }
pydocstyle.convention = "numpy"
[lint]
preview = false
select = ["ALL"]
ignore = [
"T201",
"T203", #COM812: Adds trailing comma to array expressions, resulting in bad autoformatting
"COM812",
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"G004",
"G010",
"ERA001",
"TRY401",
"PLE1205",
"S607",
"S603",
]
fixable = ["ALL"]
unfixable = []
[lint.extend-per-file-ignores]
"tests/**/*.py" = [
# at least this three should be fine in tests:
"S101", # asserts allowed in tests...
"ARG", # Unused function args -> fixtures nevertheless are functionally relevant...
"FBT", # Don't care about booleans as positional arguments in tests, e.g. via @pytest.mark.parametrize()
# The below are debateable
"PLR2004", # Magic value used in comparison, ...
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
]
[format]
quote-style = "double"
indent-style = "space"