From 9ef789d647e15ff29db62d3a5bd6d8b3b8e47cc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Mon, 30 Sep 2024 18:28:42 +0200 Subject: [PATCH] Silence ruff configuration warnings --- src/{% if use_ruff %}.ruff.toml{% endif%}.jinja | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/{% if use_ruff %}.ruff.toml{% endif%}.jinja b/src/{% if use_ruff %}.ruff.toml{% endif%}.jinja index f3fc51c..8a084d1 100644 --- a/src/{% if use_ruff %}.ruff.toml{% endif%}.jinja +++ b/src/{% if use_ruff %}.ruff.toml{% endif%}.jinja @@ -23,16 +23,16 @@ exclude = ["setup/*"] [format] exclude = ["setup/*"] -[per-file-ignores] +[{% if odoo_version >= 18 %}lint.{% endif %}per-file-ignores] "__init__.py" = ["F401", "I001"] # ignore unused and unsorted imports in __init__.py "__manifest__.py" = ["B018"] # useless expression -[isort] +[{% if odoo_version >= 18 %}lint.{% endif %}isort] section-order = ["future", "standard-library", "third-party", "odoo", "odoo-addons", "first-party", "local-folder"] -[isort.sections] +[{% if odoo_version >= 18 %}lint.{% endif %}isort.sections] "odoo" = ["odoo"] "odoo-addons" = ["odoo.addons"] -[mccabe] +[{% if odoo_version >= 18 %}lint.{% endif %}mccabe] max-complexity = 16