From 1166eb6e7e398186e6606188cde6ce6872c84440 Mon Sep 17 00:00:00 2001 From: Julien Date: Wed, 8 Nov 2023 15:08:03 +0100 Subject: [PATCH] Update VS Code config --- .vscode/extensions.json | 3 +++ .vscode/settings.json | 39 +++++++++++++++++---------------------- 2 files changed, 20 insertions(+), 22 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index f88c8dc5..57825722 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,6 +1,9 @@ { "recommendations": [ "ms-python.python", + "ms-python.black-formatter", + "ms-python.flake8", + "ms-python.isort", "njpwerner.autodocstring", "redhat.vscode-yaml" ] diff --git a/.vscode/settings.json b/.vscode/settings.json index 4488872e..8ee5536b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,47 +1,42 @@ { // Editor - "editor.rulers": [ - 88 - ], - "editor.wordWrapColumn": 88, "editor.bracketPairColorization.enabled": true, "editor.guides.bracketPairs": "active", "files.associations": { "./requirements/*.txt": "pip-requirements" }, - "editor.formatOnSave": true, - "editor.codeActionsOnSave": { - "source.organizeImports": true - }, - // Python environment - "python.defaultInterpreterPath": ".venv/bin/python", + // Python + "python.analysis.autoFormatStrings": true, + "python.analysis.typeCheckingMode": "basic", "python.terminal.activateEnvInCurrentTerminal": true, "python.terminal.activateEnvironment": true, - // Formatter "[python]": { - "editor.defaultFormatter": "ms-python.black-formatter" + "editor.defaultFormatter": "ms-python.black-formatter", + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.organizeImports": true + }, + "editor.rulers": [ + 88 + ], + "editor.wordWrapColumn": 88, }, - // Linter - "python.linting.enabled": true, - "python.linting.flake8Enabled": true, - "python.linting.flake8Args": [ - "--config=setup.cfg", - "--verbose" - ], - "python.linting.pylintEnabled": false, // Tests - "python.testing.pytestArgs": [], "python.testing.unittestEnabled": true, "python.testing.pytestEnabled": true, // extensions "autoDocstring.guessTypes": true, "autoDocstring.docstringFormat": "google", "autoDocstring.generateDocstringOnEnter": false, + "flake8.args": [ + "--config=setup.cfg", + "--verbose" + ], "yaml.schemas": { "docs/schemas/scenario/schema.json": [ "scenario*qdt.yml", "tests/fixtures/scenarios/*.qdt.yml", ], "https://json.schemastore.org/github-workflow.json": ".github/workflows/*.yml" - } + }, }