2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 19:15:41 +00:00

switched to ruff for import sorting

This commit is contained in:
Matthias Mair
2024-01-07 21:14:38 +01:00
parent f83fedbbb8
commit fd74f8d703
3 changed files with 2 additions and 27 deletions

View File

@ -12,17 +12,16 @@ exclude = [
".venv",
".env",
]
src = ["../InvenTree"]
src = ["InvenTree"]
# line-length = 120
[tool.ruff.extend-per-file-ignores]
"__init__.py" = ["D104"]
[tool.ruff.lint]
select = ["A", "B", "C4", "D", "N"]
select = ["A", "B", "C4", "D", "I", "N"]
# Things that should be enabled in the future:
# - LOG
# - I
# - DJ # for Django stuff
# - S # for security stuff (bandit)
@ -63,7 +62,6 @@ section-order = [
"first-party",
"local-folder",
]
known-first-party = ["src", "plugin", "InvenTree", "common"]
[tool.ruff.lint.isort.sections]
"django" = ["django"]