2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Add more checks

This commit is contained in:
Matthias Mair
2024-08-19 22:55:16 +02:00
parent c26d73036d
commit 3b9d485403
94 changed files with 228 additions and 358 deletions

View File

@ -20,13 +20,15 @@ src = ["src/backend/InvenTree"]
"__init__.py" = ["D104"]
[tool.ruff.lint]
select = ["A", "B", "C4", "D", "I", "N", "F"]
select = ["A", "B", "C", "C4", "D", "F", "I", "N", "PIE", "UP", "W"]
# Things that should be enabled in the future:
# - LOG
# - DJ # for Django stuff
# - S # for security stuff (bandit)
ignore = [
"C901",
# - C901 - function is too complex
"N999",
# - N802 - function name should be lowercase
"N802",