🚨(backend) fix Ruff warnings
Ruff is configured in the pyproject.toml file. Its configuration was deprecated. It triggered warning in the console. Updated the pyproject.toml file.
This commit is contained in:
committed by
aleb_the_flash
parent
59b23ad1b9
commit
4a011024dd
@@ -100,7 +100,6 @@ exclude = [
|
|||||||
"__pycache__",
|
"__pycache__",
|
||||||
"*/migrations/*",
|
"*/migrations/*",
|
||||||
]
|
]
|
||||||
ignore= ["DJ001", "PLR2004"]
|
|
||||||
line-length = 88
|
line-length = 88
|
||||||
|
|
||||||
|
|
||||||
@@ -121,12 +120,13 @@ select = [
|
|||||||
"SLF", # flake8-self
|
"SLF", # flake8-self
|
||||||
"T20", # flake8-print
|
"T20", # flake8-print
|
||||||
]
|
]
|
||||||
|
ignore= ["DJ001", "PLR2004"]
|
||||||
|
|
||||||
[tool.ruff.lint.isort]
|
[tool.ruff.lint.isort]
|
||||||
section-order = ["future","standard-library","django","third-party","meet","first-party","local-folder"]
|
section-order = ["future","standard-library","django","third-party","meet","first-party","local-folder"]
|
||||||
sections = { meet=["core"], django=["django"] }
|
sections = { meet=["core"], django=["django"] }
|
||||||
|
|
||||||
[tool.ruff.per-file-ignores]
|
[tool.ruff.lint.per-file-ignores]
|
||||||
"**/tests/*" = ["S", "SLF"]
|
"**/tests/*" = ["S", "SLF"]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
|
|||||||
Reference in New Issue
Block a user