Add a couple more rules
This commit is contained in:
+12
-8
@@ -60,25 +60,29 @@ line-length = 99
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = [
|
||||
"A", # flake8-builtins (A)
|
||||
"B", # flake8-bugbear (B)
|
||||
"E", # pycodestyle (E)
|
||||
"F", # Pyflakes (F)
|
||||
"W", # pycodestyle (W)
|
||||
"UP",
|
||||
"A", # flake8-builtins (A)
|
||||
"B", # flake8-bugbear (B)
|
||||
"E", # pycodestyle (E)
|
||||
"F", # Pyflakes (F)
|
||||
"W", # pycodestyle (W)
|
||||
"UP", # pyupgrade (UP)
|
||||
"ANN", # flake8-annotations (ANN)
|
||||
"PLC", # Pylint Convention (PLC)
|
||||
"PLE", # Pylint Error (PLE)
|
||||
"FA", # flake8-future-annotations (FA)
|
||||
]
|
||||
ignore = [
|
||||
"E221", # multiple-spaces-before-operator
|
||||
"E226", # missing-whitespace-around-arithmetic-operator
|
||||
"E228", # missing-whitespace-around-modulo-operator
|
||||
"E241", # multiple-spaces-after-comma
|
||||
"ANN401",
|
||||
"ANN401", # any-type
|
||||
"UP015", # redundant-open-modes
|
||||
"UP030", # format-literals
|
||||
]
|
||||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
"tests/*" = []
|
||||
"tests/*" = ["ANN"]
|
||||
|
||||
[tool.ruff.format]
|
||||
quote-style = "double"
|
||||
|
||||
Reference in New Issue
Block a user