File size: 735 Bytes
51ff9e5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[lint]
select = [
    "E",
    "W",
    "F",
    "I",
    "Q",
    "B",
    "ASYNC",
    "UP006",  # Use `list` instead of `List` for annotations
    "UP007",  # Use `X | Y` instead of `Union[X, Y]`
    "UP008",  # Use `X | None` instead of `Optional[X]`
]

ignore = [
    "E501",
    "B003",
    "B007",
    "B009",
    "B010",
    "B904",
    "B018",
    # Temporarily ignore ASYNC rules until they can be properly fixed in a separate PR
    "ASYNC110",
    "ASYNC220",
    "ASYNC221",
    "ASYNC230",
    "ASYNC251",
]

[lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"

[format]
quote-style = "single"

[lint.flake8-bugbear]
extend-immutable-calls = ["Depends", "fastapi.Depends", "fastapi.params.Depends"]