Created
February 12, 2025 10:56
-
-
Save bouvyd/c771fb80cb24a499d2e3ad1151edd60c to your computer and use it in GitHub Desktop.
My ruff config for Odoo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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