[FIX] dotfiles for 17.0

This commit is contained in:
Luc De Meyer
2024-01-26 17:35:39 +01:00
parent eca974d8d1
commit 5e3eb2afbd
7 changed files with 65 additions and 62 deletions

29
.ruff.toml Normal file
View File

@@ -0,0 +1,29 @@
target-version = "py310"
fix = true
[lint]
extend-select = [
"B",
"C90",
"I", # isort
"UP", # pyupgrade
]
exclude = ["setup/*"]
[format]
exclude = ["setup/*"]
[per-file-ignores]
"__init__.py" = ["F401", "I001"] # ignore unused and unsorted imports in __init__.py
"__manifest__.py" = ["B018"] # useless expression
[isort]
section-order = ["future", "standard-library", "third-party", "odoo", "odoo-addons", "first-party", "local-folder"]
[isort.sections]
"odoo" = ["odoo"]
"odoo-addons" = ["odoo.addons"]
[mccabe]
max-complexity = 16