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:
@ -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"]
|
||||
|
Reference in New Issue
Block a user