2024-06-15 09:04:31 +00:00
|
|
|
[tool.ruff]
|
|
|
|
|
|
|
|
# Assume Python 3.8
|
|
|
|
target-version = "py38"
|
|
|
|
|
|
|
|
# indentation details
|
|
|
|
line-length = 96
|
|
|
|
indent-width = 4
|
|
|
|
|
|
|
|
[tool.ruff.format]
|
|
|
|
# Enable auto-formatting of code examples in docstrings. Markdown,
|
|
|
|
# reStructuredText code/literal blocks and doctests are all supported.
|
|
|
|
docstring-code-format = true
|
|
|
|
|
|
|
|
# Set the line length limit used when formatting code snippets in
|
|
|
|
# docstrings.
|
|
|
|
#
|
|
|
|
# This only has an effect when the `docstring-code-format` setting is
|
|
|
|
# enabled.
|
|
|
|
docstring-code-line-length = "dynamic"
|
2024-06-16 06:34:34 +00:00
|
|
|
|
|
|
|
[tool.ruff.lint]
|
2024-06-18 09:24:09 +00:00
|
|
|
select = ["E", "F", "I"]
|
|
|
|
# Ignore warnings:
|
|
|
|
# line-too-long (E501)
|
|
|
|
# ambiguous-variable-name (E741): Ambiguous variable name: `l`
|
|
|
|
ignore = ["E501", "E741"]
|