Skip to content

Commit

Permalink
Merge pull request #273 from acsone/18.0-tweaks-sbi
Browse files Browse the repository at this point in the history
Silence ruff configuration warnings for 18
  • Loading branch information
sbidoul authored Oct 2, 2024
2 parents 938784e + 9ef789d commit ad92640
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 ad92640

Please sign in to comment.