]> git.lyx.org Git - lyx.git/blob - lib/pyproject.toml
Tweak ruff configuration
[lyx.git] / lib / pyproject.toml
1 [tool.ruff]
2
3 # Assume Python 3.8
4 target-version = "py38"
5
6 # indentation details
7 line-length = 96
8 indent-width = 4
9
10 [tool.ruff.format]
11 # Enable auto-formatting of code examples in docstrings. Markdown,
12 # reStructuredText code/literal blocks and doctests are all supported.
13 docstring-code-format = true
14
15 # Set the line length limit used when formatting code snippets in
16 # docstrings.
17 #
18 # This only has an effect when the `docstring-code-format` setting is
19 # enabled.
20 docstring-code-line-length = "dynamic"
21
22 [tool.ruff.lint]
23 select = ["E", "F", "I"]
24 # Ignore warnings:
25 # line-too-long (E501)
26 # ambiguous-variable-name (E741): Ambiguous variable name: `l`
27 ignore = ["E501", "E741"]