-
Notifications
You must be signed in to change notification settings - Fork 2
/
.ruff.toml
66 lines (58 loc) · 949 Bytes
/
.ruff.toml
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
target-version = "py38"
[lint]
select = [
"A",
"B",
"D",
"E501",
"EM",
"E",
"F",
"I",
"ICN",
"ISC",
"N",
"NPY",
"PL",
"PT",
"RET",
"RUF",
"UP",
"W",
]
ignore = [
"D107", # Do not document __init__ separately from the class.
"D105",
"D103",
"D100",
"N806",
"N802",
"N813",
"PLR0913",
"PLR0912",
"PLR0915",
"PLR2004",
"ISC001",
"N803",
"D200",
"N999",
]
[lint.per-file-ignores]
"*/__init__.py" = ["F401", # __init__.py import submodules for use by the package importer.
"D104",
"N999",
"D205",
"D415",
"E501"
]
"tests/*.py" = ["PLR2004", # unit test value comparisons are not magic values
"N999",
"D104"
]
"docs/source/conf.py" = ["A001", # Allow copyright variable name
"D", # conf.py does not need documentation
]
[lint.pydocstyle]
convention = "google"
[format]
quote-style = "double"