adjust checks

This commit is contained in:
Matthias Mair 2024-01-07 20:28:50 +01:00
parent 47271cf1ef
commit aff5f27148
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A

View File

@ -19,10 +19,12 @@ src = ["../InvenTree"]
"__init__.py" = ["D104"] "__init__.py" = ["D104"]
[tool.ruff.lint] [tool.ruff.lint]
select = ["A", "B", "C4", "D", "DJ", "N", "S"] select = ["A", "B", "C4", "D", "N"]
# Things that should be enabled in the future: # Things that should be enabled in the future:
# - LOG # - LOG
# - I # - I
# - DJ # for Django stuff
# - S # for security stuff (bandit)
ignore = [ ignore = [
"N999", "N999",
@ -36,8 +38,15 @@ ignore = [
"D202", "D202",
# - D415 - First line should end with a period, question mark, or exclamation point # - D415 - First line should end with a period, question mark, or exclamation point
"D415", "D415",
# - S101 - Use of `assert` detected # - D417 Missing argument descriptions in the docstring
"S101" "D417",
# TODO These should be followed up and fixed
# - B904 Within an `except` clause, raise exceptions
"B904",
# Remove fast
"A001", "A002","A003","B018"
] ]
[tool.ruff.lint.pydocstyle] [tool.ruff.lint.pydocstyle]