]> git.lyx.org Git - lyx.git/blob - lib/pyproject.toml
Add common pattern in linter exclusion list
[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 # Ignore warnings like: Ambiguous variable name: `l`
24 # ambiguous-variable-name (E741)
25 ignore = ["E741"]