Add a couple more rules
This commit is contained in:
@@ -777,7 +777,7 @@ class TagsIndex:
|
||||
control of the keys.
|
||||
"""
|
||||
|
||||
__slots__ = ("_tags")
|
||||
__slots__ = ("_tags",)
|
||||
|
||||
def __init__(self) -> None:
|
||||
self._tags: dict[str, dict[str, str]] = {}
|
||||
|
||||
+7
-3
@@ -65,20 +65,24 @@ select = [
|
||||
"E", # pycodestyle (E)
|
||||
"F", # Pyflakes (F)
|
||||
"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 = [
|
||||
"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