Skip to content

Commit

Permalink
Update black_isort_linter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
justinchuby authored Feb 6, 2024
1 parent be3394e commit 7d0f40b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/pytorch/black_isort_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def check_file(
with open(filename, "rb") as f:
# Resolve the file path to get around errors with Python 3.8/3.9
# https://github.com/psf/black/issues/4209
filename = os.path.realpath(filename)
filename = str(pathlib.Path(filename).resolve())
proc = run_command(
[sys.executable, "-mblack", "--stdin-filename", filename, "-"],
stdin=f,
Expand Down

0 comments on commit 7d0f40b

Please sign in to comment.