-
Notifications
You must be signed in to change notification settings - Fork 8
/
ruff.toml
34 lines (30 loc) · 877 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
include = ["*.py", "*.ipynb"]
exclude = [".git","__pycache__","doc/conf.py","run-clang-format.py","build"]
line-length = 88
indent-width = 4
[lint]
select = [
"E",
"F",
"N",
"W",
"D", # pydocstyle
"NPY",# check for use of deprecated numpy functions
"RUF200", # check pyproject.toml can be parsed
]
ignore = [
"D105", # Magic methods don't require documentation
"D107", # do not document __init__ separately from the class
"D205", # Required for backwards compatibility wioth yapf
"N806","N803", # allow occasional use of uppercase variable and argument names
]
[lint.pydocstyle]
convention = "google"
[lint.per-file-ignores]
"*/test/*" = ["D", "F811"]
"__init__.py" = ["F401"] # Do not remove "unused" imports in __init__.py files
[format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
docstring-code-format = true