-
Notifications
You must be signed in to change notification settings - Fork 14
/
ruff.toml
43 lines (39 loc) · 1.1 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
include = ["*.py"]
extend-exclude = [".git",
"__pycache__",
"build",
]
line-length = 88
indent-width = 4
[lint]
select = [
"E",
"F",
"N",
"W",
"D",
"NPY",
"RUF",
]
ignore = [
"D105", # Magic methods don't require documentation
"D107", # do not document __init__ separately from the class
"D301", # Allow backslashes in docstrings
"D205", "D415", # Allow no summary line. The rendered Sphinx documentation is cleaner without them.
"N816", "N806","N803", # allow occasional use of uppercase variable and argument names
"D214", # ignore overindented sections in Trigger - this is Google napoleon formatting
"RUF012", # hoomd does not use typing annotations
"NPY002", # TODO: refactor tests to use modern numpy Generator API.
]
[lint.pydocstyle]
convention = "google"
[lint.per-file-ignores]
# allow unused imports in init files
"__init__.py" = ["F401"]
# do not require docstrings in unit test or documentation example files
"**/pytest/*" = ["D", "F811", "N999"]
[format]
indent-style = "space"
line-ending = "auto"
docstring-code-line-length = 72
docstring-code-format = true