diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index edb45725..8e366f62 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -21,40 +21,46 @@ "vscode": { "extensions": [ "ms-python.python", - "ms-python.vscode-pylance", + "ms-python.debugpy", "ms-python.autopep8", "ms-python.flake8", + "ms-python.vscode-pylance", "VisualStudioExptTeam.vscodeintellicode", "GitHub.vscode-pull-request-github", "eamodio.gitlens", "streetsidesoftware.code-spell-checker", + "streetsidesoftware.code-spell-checker-australian-english", "wholroyd.jinja", "GitHub.copilot", "GitHub.copilot-chat" ], // Set *default* container specific settings.json values on container create. "settings": { - "terminal.integrated.profiles.linux": { - "bash": { - "path": "/bin/bash" - } - }, + "terminal.integrated.defaultProfile.linux": "bash", + "python.defaultInterpreterPath": "python", "python.languageServer": "Pylance", "python.linting.enabled": true, - "python.linting.flake8Enabled": true, + "python.analysis.extraPaths": [ + "/srv/app/src" + ], + "[python]": { + "editor.defaultFormatter": "ms-python.autopep8" + }, + "flake8.interpreter": [ + "python" + ], "flake8.args": [ "--max-line-length", - "120" + "160" + ], + "autopep8.interpreter": [ + "python" ], - "python.formatting.provider": "autopep8", "autopep8.args": [ "--max-line-length", - "120" + "160" ], - "cSpell.language": "en-GB", - "python.analysis.extraPaths": [ - "./app/src" - ] + "cSpell.language": "en-AU" } } }, diff --git a/.vscode/launch.json b/.vscode/launch.json index faac609b..68295596 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -6,7 +6,7 @@ "configurations": [ { "name": "Python: CKAN Run & Debug", - "type": "python", + "type": "debugpy", "request": "launch", "module": "pdb", "args": [ @@ -23,7 +23,7 @@ }, { "name": "Python: CKAN Jobs Worker Run & Debug", - "type": "python", + "type": "debugpy", "request": "launch", "module": "pdb", "args": [ @@ -38,7 +38,7 @@ }, { "name": "Python: CKAN CLI Command Run & Debug", - "type": "python", + "type": "debugpy", "request": "launch", "module": "pdb", "args": [