From ac68c288731abc0115c42e0cb2f41c1557cd7beb Mon Sep 17 00:00:00 2001 From: Daniel D'Avella Date: Thu, 21 Sep 2023 13:14:38 -0400 Subject: [PATCH] Use list instead of set for default codemods --- src/codemodder/codemods/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codemodder/codemods/__init__.py b/src/codemodder/codemods/__init__.py index 36761be74..19fa4af8d 100644 --- a/src/codemodder/codemods/__init__.py +++ b/src/codemodder/codemods/__init__.py @@ -20,7 +20,7 @@ from codemodder.codemods.requests_verify import RequestsVerify from codemodder.codemods.use_walrus_if import UseWalrusIf -DEFAULT_CODEMODS = { +DEFAULT_CODEMODS = [ DjangoDebugFlagOn, DjangoSessionCookieSecureOff, HardenPyyaml, @@ -38,7 +38,7 @@ TempfileMktemp, RequestsVerify, UseWalrusIf, -} +] ALL_CODEMODS = DEFAULT_CODEMODS CODEMOD_IDS = [codemod.id() for codemod in DEFAULT_CODEMODS]