-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
40 lines (37 loc) · 950 Bytes
/
ruff.toml
File metadata and controls
40 lines (37 loc) · 950 Bytes
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
line-length = 100
indent-width = 4
[lint]
select = ["ALL"]
ignore = [
"TC",
"TD",
"FIX",
"D",
"EM",
# Taken from https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"E114",
"E117",
"E501",
"G004",
"Q000",
"Q001",
"PTH",
"TRY003",
"COM812",
]
[lint.per-file-ignores]
"test_*.py" = [
"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()
"PLR2004", # Magic value used in comparison, ...
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
"PT011", # Don't care about exception messages
"ANN" # Who typehints their tests?
]
"conf.py" = ["ALL"]
[format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = true
line-ending = "auto"