Skip to content

Commit

Permalink
Disable for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Feb 4, 2024
1 parent de67dab commit a8a4dc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/django_autotyping/stubbing/codemods/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"gather_codemods",
)

RulesT: TypeAlias = Literal["DJAS001", "DJAS002", "DJAS010", "DJAS011", "DJAS015", "DJAS016", "DJAS017"]
RulesT: TypeAlias = Literal["DJAS001", "DJAS002", "DJAS010", "DJAS011", "DJAS015", "DJAS016"]

rules: list[tuple[RulesT, type[StubVisitorBasedCodemod]]] = [
("DJAS001", ForwardRelationOverloadCodemod),
Expand All @@ -39,12 +39,12 @@
("DJAS011", AuthFunctionsCodemod),
("DJAS015", ReverseOverloadCodemod),
("DJAS016", SettingCodemod),
("DJAS017", CallCommandCodemod),
# ("DJAS017", CallCommandCodemod),
]


def gather_codemods(
ignore: Container[RulesT] = [], include: Container[RulesT] = ["DJAS017"]
ignore: Container[RulesT] = [], include: Container[RulesT] = []
) -> list[type[StubVisitorBasedCodemod]]:
if include:
return [rule[1] for rule in rules if rule[0] in include]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def _iter_actions(
arg_infos = parent_args + [ArgInfo(nargs=action.nargs, dest=action.dest) for action in pos_actions]
options = {**parent_options, **get_options_infos(parser, is_subparser=is_subparser)}

# TODO shouldn't yield if subparsers are required
yield arg_infos, options

subparsers_actions = [
Expand Down

0 comments on commit a8a4dc2

Please sign in to comment.