-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathruff.toml
62 lines (57 loc) · 1.14 KB
/
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
target-version = "py310"
line-length = 110
[lint]
select = [
"E",
"W",
"F",
"I",
"D",
"PL",
"NPY",
"RUF",
"UP",
"S",
]
unfixable = [
"PD002",
]
ignore = [
"D100",
"D105", # Missing docstring in magic method
"D200",
"D400",
"UP007",
]
[lint.per-file-ignores]
"test*.py" = [
"D", # Documentation not needed in tests
"S101", # S101 Use of `assert` detected
"PLR2004" # Magic value used in comparison
]
"conftest.py" = [
"D", # Documentation not needed in tests
"S101", # S101 Use of `assert` detected
"PLR2004" # Magic value used in comparison
]
"docs/*" = [
"D",
"E402", # Module level import not at top of file
"S101", # Use of `assert` detected
"PLR2004", # Magic value used in comparison.
]
"*/migrations/versions/*" = [
"D103", # Missing docstring in public function
]
"scripts/*" = [
"S101" # S101 Use of `assert` detected
]
"stubs/*" = [
"PLR0913", # Too many arguments in function definition
]
[lint.isort]
known-first-party = ["cmip_ref", "cmip_ref_core"]
[lint.pydocstyle]
convention = "numpy"
[format]
docstring-code-format = true