-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
38 lines (32 loc) · 1.12 KB
/
ruff.toml
File metadata and controls
38 lines (32 loc) · 1.12 KB
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
# https://docs.astral.sh/ruff/settings/#output-format
output-format = "grouped"
indent-width = 4
line-length = 110
target-version = "py312"
src = ['.', 'wood', 'wood/src', 'wood/test']
exclude = [".bzr", ".direnv", ".eggs", ".git", ".git-rewrite", ".hg", ".mypy_cache", ".nox", ".pants.d", ".pytype", ".ruff_cache", ".svn", ".tox", ".venv", "__pypackages__", "_build", "buck-out", "dist", "node_modules", "venv"]
extend-exclude = []
include = ["*.py", "*.pyi", "*.ipynb", "**/pyproject.toml"]
extend-include = []
[format]
# Enable reformatting of code snippets in docstrings.
docstring-code-format = true
# Format all docstring code snippets with a line length of X.
docstring-code-line-length = "dynamic"
# Other
indent-style = "space"
line-ending = "auto"
quote-style = "preserve"
skip-magic-trailing-comma = false
[lint.flake8-annotations]
allow-star-arg-any = false
ignore-fully-untyped = false
mypy-init-return = false
suppress-dummy-args = false
suppress-none-returning = false
[lint.flake8-quotes]
# Don't bother trying to avoid escapes.
avoid-escape = true
docstring-quotes = "double"
inline-quotes = "double"
multiline-quotes = "double"