Skip to content

Commit

Permalink
Silence ruff configuration warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Sep 30, 2024
1 parent 4e5c50c commit 9ef789d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/{% if use_ruff %}.ruff.toml{% endif%}.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9ef789d

Please sign in to comment.