update ruff config with more stuff

This commit is contained in:
AUTOMATIC 2023-05-10 11:00:07 +03:00
parent 57ef617251
commit e42de4b8a2
1 changed files with 13 additions and 1 deletions

View File

@ -1,6 +1,12 @@
[tool.ruff] [tool.ruff]
target-version = "py310" target-version = "py39"
extend-select = [
"B",
"C",
"I",
]
exclude = [ exclude = [
"extensions", "extensions",
@ -10,6 +16,12 @@ exclude = [
ignore = [ ignore = [
"E501", # Line too long "E501", # Line too long
"E731", # Do not assign a `lambda` expression, use a `def` "E731", # Do not assign a `lambda` expression, use a `def`
"I001", # Import block is un-sorted or un-formatted
"C901", # Function is too complex
"C408", # Rewrite as a literal
"B007", # Loop control variable not used within loop body
] ]