Skip to content

Commit

Permalink
fix: revert to libCST old parser
Browse files Browse the repository at this point in the history
fix #577
  • Loading branch information
browniebroke committed Apr 14, 2022
1 parent c940390 commit 3cb81f9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/django_codemod/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import inspect
import os
from collections import defaultdict
from operator import attrgetter
from pathlib import Path
Expand All @@ -16,8 +15,6 @@
from django_codemod.path_utils import get_sources
from django_codemod.visitors.base import BaseDjCodemodTransformer

os.environ["LIBCST_PARSER_TYPE"] = "native"


def index_codemodders(version_getter: Callable) -> Dict[Tuple[int, int], List]:
"""
Expand Down
6 changes: 0 additions & 6 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ def command_instance():
return BaseCodemodCommand([], CodemodContext())


def test_use_native_parser():
from libcst._parser.entrypoints import is_native

assert is_native() is True


def test_missing_argument(cli_runner):
"""Should explain missing arguments."""
result = cli_runner.invoke(cli.djcodemod, ["run"])
Expand Down

0 comments on commit 3cb81f9

Please sign in to comment.