diff --git a/src/codemodder/registry.py b/src/codemodder/registry.py index 6b15acbb..78f95602 100644 --- a/src/codemodder/registry.py +++ b/src/codemodder/registry.py @@ -24,8 +24,6 @@ class CodemodCollection: """A collection of codemods that all share the same origin and documentation.""" origin: str - docs_module: str - semgrep_config_module: str codemods: list diff --git a/src/core_codemods/__init__.py b/src/core_codemods/__init__.py index ea4235fa..0129aecf 100644 --- a/src/core_codemods/__init__.py +++ b/src/core_codemods/__init__.py @@ -65,8 +65,6 @@ registry = CodemodCollection( origin="pixee", - docs_module="core_codemods.docs", - semgrep_config_module="core_codemods.semgrep", codemods=[ AddRequestsTimeouts, DjangoDebugFlagOn, @@ -125,8 +123,6 @@ sonar_registry = CodemodCollection( origin="sonar", - docs_module="core_codemods.docs", - semgrep_config_module="core_codemods.semgrep", codemods=[ SonarNumpyNanEquality, SonarLiteralOrNewObjectIdentity, diff --git a/tests/codemods/base_codemod_test.py b/tests/codemods/base_codemod_test.py index 9de8f263..4573ca5d 100644 --- a/tests/codemods/base_codemod_test.py +++ b/tests/codemods/base_codemod_test.py @@ -107,8 +107,6 @@ def setup_class(cls): collection = CodemodCollection( origin="pixee", codemods=[cls.codemod], - docs_module="core_codemods.docs", - semgrep_config_module="core_codemods.semgrep", ) cls.registry = CodemodRegistry() cls.registry.add_codemod_collection(collection) diff --git a/tests/codemods/test_lazy_logging.py b/tests/codemods/test_lazy_logging.py index b20815ca..c27c3518 100644 --- a/tests/codemods/test_lazy_logging.py +++ b/tests/codemods/test_lazy_logging.py @@ -3,7 +3,7 @@ from core_codemods.lazy_logging import LazyLogging logging_funcs = {"debug", "info", "warning", "warn", "error", "critical"} -each_func = pytest.mark.parametrize("func", logging_funcs) +each_func = pytest.mark.parametrize("func", sorted(logging_funcs)) class TestLazyLoggingModulo(BaseSemgrepCodemodTest):