Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
chore: remove temp workaround for libcst bug
Browse files Browse the repository at this point in the history
This was fixed in v0.4.2
  • Loading branch information
dhruvmanila committed May 11, 2022
1 parent 38c133c commit bb5cbfa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.7"
libcst = "^0.4.1"
libcst = "^0.4.2"
# https://github.com/pallets/click/issues/2227
click = ">=8.1.1"

Expand Down
9 changes: 3 additions & 6 deletions remove_print_statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,9 @@ def check_file(
with open(filename, "w") as f:
f.write(result.code)
elif isinstance(result, TransformFailure):
click.secho(f"Failed to transform the file {filename!r}: ", nl=False, fg="red")
try:
# FIXME: https://github.com/Instagram/LibCST/issues/678
click.secho(result.error, fg="red")
except Exception:
pass
click.secho(
f"Failed to transform the file {filename!r}: {result.error}", fg="red"
)
report.failure_count += 1


Expand Down

0 comments on commit bb5cbfa

Please sign in to comment.