Skip to content

Commit 0489a4e

Browse files
committed
Update ruff configuration and remove unnecessary noqa comments
1 parent 3da2a05 commit 0489a4e

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ ignore = [
4848
"FA",
4949
"COM812",
5050
"ISC001",
51-
"RUF100",
52-
"RUF102",
5351
]
52+
external = ["COP"]
5453

5554
[tool.ruff.lint.isort]
5655
no-lines-before = ["standard-library", "local-folder"]

src/community_of_python_flake8_plugin/checks/function_verb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def retrieve_parent_class(syntax_tree: ast.AST, ast_node: ast.AST) -> ast.ClassD
5656

5757
@typing.final
5858
class FunctionVerbCheck(ast.NodeVisitor):
59-
def __init__(self, syntax_tree: ast.AST) -> None: # noqa: ARG002
59+
def __init__(self, syntax_tree: ast.AST) -> None:
6060
self.violations: list[Violation] = []
6161
self.syntax_tree: typing.Final[ast.AST] = syntax_tree
6262

src/community_of_python_flake8_plugin/checks/module_import_many_names.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def check_module_path_exists(module_name: str) -> bool:
3232

3333
@typing.final
3434
class ModuleImportManyNamesCheck(ast.NodeVisitor):
35-
def __init__(self, syntax_tree: ast.AST) -> None: # noqa: ARG002
35+
def __init__(self, syntax_tree: ast.AST) -> None:
3636
self.violations: list[Violation] = []
3737
self.contains_all_declaration: typing.Final[bool] = (
3838
check_module_has_all_declaration(syntax_tree) if isinstance(syntax_tree, ast.Module) else False

0 commit comments

Comments
 (0)