From 560ea5549f6ad1ce8ef4eef25c345cc3e6a88334 Mon Sep 17 00:00:00 2001 From: DFriend01 Date: Mon, 24 Jul 2023 19:27:31 -0700 Subject: [PATCH 1/2] Add path to python interpreter for black formatter --- .devcontainer/config/sailbot_workspace.code-workspace | 1 + 1 file changed, 1 insertion(+) diff --git a/.devcontainer/config/sailbot_workspace.code-workspace b/.devcontainer/config/sailbot_workspace.code-workspace index 89bc6e4cf..5f881ddd1 100644 --- a/.devcontainer/config/sailbot_workspace.code-workspace +++ b/.devcontainer/config/sailbot_workspace.code-workspace @@ -148,6 +148,7 @@ ], // formatter: black and isort extensions "python.formatting.provider": "none", + "black-formatter.interpreter": ["/usr/bin/python3"], "black-formatter.args": [ "--line-length=99", "--skip-string-normalization" From f68017d87a9f81a35b96e46b13d2f1567a2863c4 Mon Sep 17 00:00:00 2001 From: DFriend01 Date: Tue, 25 Jul 2023 01:08:50 -0700 Subject: [PATCH 2/2] Add python interpreter path to isort and flake8 config --- .devcontainer/config/sailbot_workspace.code-workspace | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.devcontainer/config/sailbot_workspace.code-workspace b/.devcontainer/config/sailbot_workspace.code-workspace index 5f881ddd1..b9773f062 100644 --- a/.devcontainer/config/sailbot_workspace.code-workspace +++ b/.devcontainer/config/sailbot_workspace.code-workspace @@ -146,6 +146,7 @@ "--show-source", "--statistics", ], + "flake8.interpreter": ["/usr/bin/python3"], // formatter: black and isort extensions "python.formatting.provider": "none", "black-formatter.interpreter": ["/usr/bin/python3"], @@ -154,6 +155,7 @@ "--skip-string-normalization" ], "isort.args":["--profile=black"], + "isort.interpreter": ["/usr/bin/python3"], // test framework: pytest "python.testing.cwd": "/workspaces/sailbot_workspace/src", "python.testing.pytestArgs": [