-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
54 lines (50 loc) · 1.25 KB
/
ruff.toml
File metadata and controls
54 lines (50 loc) · 1.25 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
preview = true
include = [
"src",
"tests",
"pyproject.toml",
]
lint.select = [
"ALL",
]
lint.extend-ignore = [
# Later...
"A",
"D", # pydocstyle
"DOC",
"TRY",
"PLR",
"ARG",
"FBT",
"ERA",
# False positives
"COM812", # [*] missing-trailing-comma
"T201", # [*] print
"RUF005", # Confusing syntax
"E501", # [ ] line-too-long
"S101", # use of assert
"RUF001", # [ ] ambiguous-unicode-character-string
"SIM108", # if-else-block-instead-of-if-exp
# FIX or review This
"S608", # Potential SQL injection
# Review later
"SLF001", # private-member-access
"CPY001", # missing-copyright-notice
"ANN003",
"ANN401",
"ANN",
]
[lint.extend-per-file-ignores]
"benchmarks/**/*.py" = [
"S311",
]
"examples/**/*.py" = [
"RUF012", # Meta class indexed_fields is intentionally mutable class attribute
]
"tests/**/*.py" = [
"ANN", # flake8-annotations
"RUF012", # Meta class indexed_fields is intentionally mutable class attribute
"N806", # Variable in function should be lowercase (e.g., Product = setup_models)
"PLC2701", # Private name import (e.g., _parse_filter_key for testing)
"PT011", # `pytest.raises(ValueError)` is too broad
]