-
Notifications
You must be signed in to change notification settings - Fork 3
/
ruff.toml
35 lines (30 loc) · 1.01 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
# Copyright 2022-2024 Antmicro <www.antmicro.com>
#
# SPDX-License-Identifier: Apache-2.0
preview = true
line-length = 79
select = [
"I", # enable isort
"D", # docstring errors
"E", # PEP8 errors
"E261", # At least two spaces before inline comment
"E225", # Missing whitespace around operator
"F", # PEP8 warnings
]
ignore = [
"E203", # Whitespace before ':'
"D105", # Missing docstring in magic method
"D204", # 1 blank line required after class docstring
"D205", # 1 blank line required between summary line and description
"D200", # One-line docstring should fit on one line
"D102", # Missing docstring in public method
"D401", # First line of docstring should be in imperative mood
"D407", # Missing argument description in the docstring (handled by pydoclint)
]
[isort]
extra-standard-library = ["pathlib"]
[pydocstyle]
convention = "numpy"
[extend-per-file-ignores]
"setup.py" = ["D100"]
"kenning/tests/*" = ["D100", "D101", "D103"]