-
Notifications
You must be signed in to change notification settings - Fork 4
/
ruff.toml
62 lines (54 loc) · 1.62 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
# same as black
line-length = 88
indent-width = 4
# assume Python 3.10
target-version = "py310"
src = ["../src"]
[lint]
select = ["ALL", "D107"]
ignore = [
"FA102", # dynamic type hinting
"S101", # use of assert
"ARG001", # unused function argument
"ARG002", # unused method argument
"ANN101", # annotation for self
"ANN102", # annotation of cls
"PLR0913", # too many arguments
"ANN002", # type annotations for args
"ANN003", # type annotations for kwargs
"ARG004", # unused kwargs
"PLW2901", # for loop variable overwritten
"SLF001", # use of private methods,
"FBT001", # boolean type positional argument
"FBT002", # boolean type default argument
"COM812", # flake8-commas "Trailing comma missing"
"ISC001", # implicitly concatenated string literals on one line
"UP007", # conflict non-pep8 annotations
"S311" # random generator not suitable for cryptographic purposes
]
[lint.per-file-ignores]
"test_*.py" = [
"D", # force docstrings
"ANN", # annotations for tests
"PT006", # mark parametrize
]
"*/tests/*.py" = ["D104"]
"setup.py" = ["D"]
"examples/*" = [
"D", # docstrings
"INP001", # init file in folder
"ANN", # annotations
"T20" # print
]
"docs/*" = ["ALL"]
[lint.pydocstyle]
convention = "numpy"
[format]
# like black, use double quotes for strings.
quote-style = "double"
# like black, indent with spaces, rather than tabs.
indent-style = "space"
# like black, respect magic trailing commas.
skip-magic-trailing-comma = false
# like black, automatically detect the appropriate line ending.
line-ending = "auto"