From 65a3d419504aed7e35e414eb9abc35c48412dd1e Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Thu, 27 Oct 2022 12:21:03 +0100 Subject: [PATCH] Save vscode configuration (#2621) --- .pre-commit-config.yaml | 2 ++ .vscode/extensions.json | 11 ++++++++++- .vscode/settings.json | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fc55b6e52b..a76ccd516c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,6 +15,8 @@ default_language_version: python: python3.9 exclude: > (?x)^( + .vscode/extensions.json| + .vscode/settings.json| examples/broken/yaml-with-tabs/invalid-due-tabs.yaml )$ repos: diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 8158b9479e..4576e5a319 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,9 +1,18 @@ -// spell-checker:ignore esbenp { "recommendations": [ + "ExecutableBookProject.myst-highlight", + "Tyriar.sort-lines", "esbenp.prettier-vscode", + "hbenl.vscode-test-explorer", + "ms-python.isort", "ms-python.python", + "ms-python.vscode-pylance", + "ms-vscode.live-server", "redhat.ansible", "redhat.vscode-yaml", + "shardulm94.trailing-spaces", + "tamasfe.even-better-toml", + "timonwong.shellcheck", + "znck.grammarly", ] } diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000000..0ce06bc55d --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,37 @@ +{ + "[markdown]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "evenBetterToml.formatter.allowedBlankLines": 2, + "files.exclude": { + "*.egg-info": true, + ".pytest_cache": true, + ".tox": true, + "__pycache__": true + }, + "git.ignoreLimitWarning": true, + "grammarly.domain": "technical", + "grammarly.files.include": [ + "**/*.txt", + "**/*.md" + ], + "grammarly.hideUnavailablePremiumAlerts": true, + "grammarly.showExamples": true, + "python.formatting.provider": "black", + "python.linting.flake8Enabled": true, + "python.linting.mypyCategorySeverity.error": "Warning", + "python.linting.mypyEnabled": true, + "python.testing.nosetestsEnabled": false, + "python.testing.pytestEnabled": true, + "python.testing.unittestEnabled": false, + "restructuredtext.confPath": "${workspaceFolder}/docs/docsite/rst", + "restructuredtext.languageServer.disabled": true, + "sortLines.filterBlankLines": true, + "yaml.completion": true, + "yaml.customTags": [ + "!encrypted/pkcs1-oaep scalar", + "!vault scalar" + ], + "yaml.format.enable": false, + "yaml.validate": true +}