Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
asford authored May 19, 2021
1 parent 90a37e1 commit 45ba827
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mypy_ls/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,15 @@ def pyls_lint(config: Config, workspace: Workspace, document: Document,
else:
args = ["run", "--"] + args

log.info(f"executing dmypy args={args}")
log.info("executing dmypy args = %s", args")
report, errors, _ = mypy_api.run_dmypy(args)

log.debug("report:\n%s", report)
log.debug("errors:\n%s", errors)

diagnostics = []
for line in report.splitlines():
log.debug(f"parsing: line = %r", line)
log.debug("parsing: line = %r", line)
diag = parse_line(line, document)
if diag:
diagnostics.append(diag)
Expand Down Expand Up @@ -228,7 +228,7 @@ def init(workspace: str) -> Dict[str, str]:
"""
# On windows the path contains \\ on linux it contains / all the code works with /
log.info(f"init workspace = %s", workspace)
log.info("init workspace = %s", workspace)
workspace = workspace.replace("\\", "/")

configuration = {}
Expand All @@ -248,7 +248,7 @@ def init(workspace: str) -> Dict[str, str]:
tmpFile = tempfile.NamedTemporaryFile('w', delete=False)
tmpFile.close()

log.info(f"mypyConfigFile = %s configuration = %s", mypyConfigFile, configuration)
log.info("mypyConfigFile = %s configuration = %s", mypyConfigFile, configuration)
return configuration


Expand Down

0 comments on commit 45ba827

Please sign in to comment.