-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathruff.toml
More file actions
90 lines (81 loc) · 1.81 KB
/
Copy pathruff.toml
File metadata and controls
90 lines (81 loc) · 1.81 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
line-length = 100
target-version = "py311"
[lint]
preview = true
select = [
"F",
"E",
"W",
"C90",
"I",
"N",
"UP",
"ANN",
"ASYNC",
"S",
"B",
"A",
"C4",
"EM",
"FA",
"ISC",
"LOG",
"G",
"PIE",
"T20",
"PT",
"RSE",
"RET",
"SLOT",
"SIM",
"TC",
"ARG",
"PTH",
"PL",
"TRY",
"FAST",
"PERF",
"FURB",
"RUF",
# Project specific selects
"DOC",
"D",
]
ignore = [
"S101", # Assert used
"PLR2004", # Magic value used
"RUF003", # Comment contains ambiguous character
"PLR6301", # Method could be a function, class method, or static method
"ANN401", # typing.Any used
"E501", # Line too long
"S311", # Standard pseudo-random generators are not suitable for security/cryptographic purposes
# Project specific ignores
"A002", # Shadow built-in name
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D107", # Missing docstring in __init__
"DOC501", # Raised exception not documented
"DOC502", # Raised exception not documented
"RUF076", # Avoid using `autouse=True` in `pytest.fixture` decorators
]
[lint.per-file-ignores]
"**/__init__.py" = ["F403", "F401"] # Wildcard imports used
"tests/*.py" = ["ANN001", "DOC", "D"]
"test.py" = ["ALL"]
[lint.flake8-type-checking]
quote-annotations = true
runtime-evaluated-base-classes = [
"pydantic.BaseModel",
"pydantic_settings.BaseSettings",
"ambr.models._base.BaseModel",
]
[lint.mccabe]
max-complexity = 15
[lint.pydocstyle]
convention = "google"
[lint.isort]
required-imports = ["from __future__ import annotations"]
split-on-trailing-comma = false
[format]
skip-magic-trailing-comma = true