Skip to content

Instantly share code, notes, and snippets.

@bouvyd
Created February 12, 2025 10:56
Show Gist options
  • Save bouvyd/c771fb80cb24a499d2e3ad1151edd60c to your computer and use it in GitHub Desktop.
Save bouvyd/c771fb80cb24a499d2e3ad1151edd60c to your computer and use it in GitHub Desktop.
My ruff config for Odoo
line-length = 80
select = ["E4", "E7", "E9", "F", "B", "Q", "I"]
ignore-init-module-imports = true
[format]
quote-style = "single"
[lint.isort.sections]
"odoo" = ["odoo"]
[lint.isort]
section-order = [ "future", "standard-library", "first-party", "local-folder", "third-party", "odoo"]
lines-after-imports = 2
lines-between-types = 1
[lint.mccabe]
# Flag errors (`C901`) whenever the complexity level exceeds 10.
max-complexity = 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment