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
+1 -1
View File
@@ -777,7 +777,7 @@ class TagsIndex:
control of the keys. control of the keys.
""" """
__slots__ = ("_tags") __slots__ = ("_tags",)
def __init__(self) -> None: def __init__(self) -> None:
self._tags: dict[str, dict[str, str]] = {} self._tags: dict[str, dict[str, str]] = {}
+12 -8
View File
@@ -60,25 +60,29 @@ line-length = 99
[tool.ruff.lint] [tool.ruff.lint]
select = [ select = [
"A", # flake8-builtins (A) "A", # flake8-builtins (A)
"B", # flake8-bugbear (B) "B", # flake8-bugbear (B)
"E", # pycodestyle (E) "E", # pycodestyle (E)
"F", # Pyflakes (F) "F", # Pyflakes (F)
"W", # pycodestyle (W) "W", # pycodestyle (W)
"UP", "UP", # pyupgrade (UP)
"ANN", # flake8-annotations (ANN)
"PLC", # Pylint Convention (PLC)
"PLE", # Pylint Error (PLE)
"FA", # flake8-future-annotations (FA)
] ]
ignore = [ ignore = [
"E221", # multiple-spaces-before-operator "E221", # multiple-spaces-before-operator
"E226", # missing-whitespace-around-arithmetic-operator "E226", # missing-whitespace-around-arithmetic-operator
"E228", # missing-whitespace-around-modulo-operator "E228", # missing-whitespace-around-modulo-operator
"E241", # multiple-spaces-after-comma "E241", # multiple-spaces-after-comma
"ANN401", "ANN401", # any-type
"UP015", # redundant-open-modes "UP015", # redundant-open-modes
"UP030", # format-literals "UP030", # format-literals
] ]
[tool.ruff.lint.per-file-ignores] [tool.ruff.lint.per-file-ignores]
"tests/*" = [] "tests/*" = ["ANN"]
[tool.ruff.format] [tool.ruff.format]
quote-style = "double" quote-style = "double"