Add a couple more rules

This commit is contained in:
Veronica Berglyd Olsen
2025-04-03 01:27:55 +02:00
parent 53a2d0e691
commit 6a66e06544
2 changed files with 13 additions and 9 deletions
+12 -8
View File
@@ -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"