Add common pattern in linter exclusion list

# ambiguous-variable-name (E741)

Derived from the **pycodestyle** linter.

## What it does
Checks for the use of the characters 'l', 'O', or 'I' as variable names.

## Why is this bad?
In some fonts, these characters are indistinguishable from the
numerals one and zero. When tempted to use 'l', use 'L' instead.

## Reason to ignore in LyX?
With appropriated fonts that is not an issue. In our case we just use
the 'l', in particular in the context of iterators: 'i', 'j', 'k', 'l'.
This commit is contained in:
José Matos 2024-06-16 07:34:34 +01:00
parent 0fc8ee5ace
commit b80ccaa417

View File

@ -18,3 +18,8 @@ docstring-code-format = true
# This only has an effect when the `docstring-code-format` setting is
# enabled.
docstring-code-line-length = "dynamic"
[tool.ruff.lint]
# Ignore warnings like: Ambiguous variable name: `l`
# ambiguous-variable-name (E741)
ignore = ["E741"]