-
Notifications
You must be signed in to change notification settings - Fork 4
/
ruff.toml
55 lines (53 loc) · 2.17 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
target-version = "py312"
lint.select = ["ALL"]
line-length = 120
exclude = [
"website/*",
"read_bufr.py",
"btn_metrics.py",
"gts_atn_metrics.py",
"gts_regional_metrics.py",
]
lint.ignore = [
"ANN001", # Missing type annotation for function argument
"ANN201", # Missing return type annotation for public function
"D203", # 1 blank line required before class docstring
"D205", # 1 blank line required between summary line and description
"D213", # incompatible. Ignoring `multi-line-summary-second-line`
"D401", # First line of docstring should be in imperative mood
"G004", # logging-f-string
"PD901", # Avoid using the generic variable name `df` for DataFrames
"ISC001", # single-line-implicit-string-concatenation
"COM812", # missing-trailing-comma
]
[lint.extend-per-file-ignores]
"test_*.py" = [
"S101", # Use of assert detected
"D103", # Missing docstring in public function
"INP001", # File is part of an implicit namespace package
]
# nbqa-ruff acts on converted .py so we cannot glob .ipynb :-/
# https://github.com/nbQA-dev/nbQA/issues/823
"run_metrics*" = [
"INP001", # is part of an implicit namespace package
"D100", # Missing docstring in public module
"E402", # Module level import not at top of file
"FBT003", # Boolean positional value in function call
]
"glider_metrics*" = [
"ANN001", # Missing type annotation for function argument
"ANN202", # Missing return type annotation for private function
"ANN201", # Missing return type annotation for public function
"B018", # Found useless expression. Either assign it to a variable or remove it
"D100", # Missing docstring in public module
"D103", # Missing docstring in public function
"E402", # Module level import not at top of file
"ERA001", # Found commented-out code
"FBT003", # Boolean positional value in function call
"INP001", # File is part of an implicit namespace package
"PD901", # Avoid using the generic variable name `df` for DataFrames
"S603", # `subprocess` call: check for execution of untrusted input
"T201", # `print` found"
]
[lint.pycodestyle]
max-doc-length = 180