diff --git a/mypy_ls/plugin.py b/mypy_ls/plugin.py index 4c0c825..1d40406 100644 --- a/mypy_ls/plugin.py +++ b/mypy_ls/plugin.py @@ -173,7 +173,7 @@ 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) @@ -181,7 +181,7 @@ def pyls_lint(config: Config, workspace: Workspace, document: Document, 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) @@ -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 = {} @@ -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