Skip to content

Commit

Permalink
resolved_filename
Browse files Browse the repository at this point in the history
  • Loading branch information
justinchuby committed Feb 6, 2024
1 parent da177ca commit 586c6de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lintrunner_adapters/adapters/black_isort_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def check_file(

# Resolve the file path to get around errors with Python 3.8/3.9 on Windows
# https://github.com/psf/black/issues/4209
filename = os.path.realpath(filename)
resolved_filename = os.path.realpath(filename)
proc = run_command(
[
sys.executable,
Expand All @@ -51,7 +51,7 @@ def check_file(
*(("--ipynb",) if filename.endswith(".ipynb") else ()),
*(("--fast",) if fast else ()),
"--stdin-filename",
filename,
resolved_filename,
"-",
],
stdin=None,
Expand Down

0 comments on commit 586c6de

Please sign in to comment.