commit b80ccaa417f4f9b460bfdc9a9896873027b03ac1
Author: José Matos <[email protected]>
Date: Sun Jun 16 07:34:34 2024 +0100
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'.
---
lib/pyproject.toml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/pyproject.toml b/lib/pyproject.toml
index 88d360fc1d..2aa90e4058 100644
--- a/lib/pyproject.toml
+++ b/lib/pyproject.toml
@@ -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"]
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs