-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruff.toml
28 lines (23 loc) · 828 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
line-length = 99
indent-width = 4
# Assume Python 3.11
target-version = "py311"
[lint]
select = ["D", "F", "N", "I", "W"]
# ignore E402: module level import not at top of file
# ignore D100: missing docstring in public module
# ignore D101: missing docstring in public class
# ignore D104: missing docstring in public package
# ignore D202: no blank lines allowed after function docstring
ignore = ["E402", "D100", "D202", "D101", "D104"]
[lint.per-file-ignores]
# Ignore `E402` (import violations) in all `__init__.py` files.
"__init__.py" = ["E402"]
[lint.pydocstyle]
convention = "google" # Accepts: "google", "numpy", or "pep257".
[format]
# Enable reformatting of code snippets in docstrings.
docstring-code-format = true
docstring-code-line-length = 109
quote-style = "single"
# exclude = ["sequence.py", "shot.py"]