Skip to content

Commit

Permalink
[python] Fix isort (#303)
Browse files Browse the repository at this point in the history
Isort argument --filename should be the exact path to the file
  • Loading branch information
boris-stepanov authored Nov 28, 2023
1 parent e4f7d24 commit cb4778b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/formatter/filetypes/python.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function M.isort()
local util = require("formatter.util")
return {
exe = "isort",
args = { "-q", "--filename", util.escape_path(util.get_current_buffer_file_name()), "-" },
args = { "-q", "--filename", util.escape_path(util.get_current_buffer_file_path()), "-" },
stdin = true,
}
end
Expand Down

0 comments on commit cb4778b

Please sign in to comment.