From 400d81b5bfe59e9e4c548c4d527e29982f914f58 Mon Sep 17 00:00:00 2001 From: CulmoneY Date: Thu, 21 Nov 2024 00:51:02 -0500 Subject: [PATCH] Removed config --- python_ta/checkers/static_type_checker.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/python_ta/checkers/static_type_checker.py b/python_ta/checkers/static_type_checker.py index 4fd4cc7ea..19ce09955 100644 --- a/python_ta/checkers/static_type_checker.py +++ b/python_ta/checkers/static_type_checker.py @@ -46,18 +46,6 @@ class StaticTypeChecker(BaseChecker): ), } - options = ( - ( - "mypy-ignore-errors", - { - "default": (), - "type": "csv", - "metavar": "", - "help": "List of Mypy error codes to ignore", - }, - ), - ) - def __init__(self, linter: Optional["PyLinter"] = None) -> None: """Initialize the StaticTypeChecker.""" super().__init__(linter=linter) @@ -79,7 +67,7 @@ def visit_module(self, node: nodes.Module) -> None: mypy_options = [ "--ignore-missing-imports", "--disable-error-code=call-arg", - ] + list(self.linter.config.mypy_ignore_errors) + ] result, _, _ = api.run([filename] + mypy_options) self._module_stack.append( {