From e70c9015ef79b41b2df37c055c2397328a674b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Wed, 25 Jan 2023 19:51:09 +0100 Subject: [PATCH] .vscode stuff --- .vscode/extensions.json | 7 +++++++ .vscode/launch.json | 16 ++++++++++++++++ .vscode/settings.json | 28 ++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 .vscode/extensions.json create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..5f6433d --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + "recommendations": [ + "editorconfig.editorconfig", + "njpwerner.autodocstring", + "ms-python.python" + ] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..95c3109 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Python: Current File", + "type": "python", + "request": "launch", + "program": "${workspaceFolder}/src/main.py", + "console": "integratedTerminal", + "justMyCode": true, + "env": { + "PYGAME_HIDE_SUPPORT_PROMPT": "hide" + } + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..0954c9c --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,28 @@ +{ + "python.defaultInterpreterPath": ".venv/bin/python", + "python.analysis.typeCheckingMode": "basic", + "python.formatting.provider": "black", + "editor.formatOnSave": true, + "python.linting.enabled": true, + "python.linting.lintOnSave": true, + "python.linting.flake8Enabled": true, + "python.linting.mypyEnabled": true, + "python.linting.banditEnabled": true, + "python.languageServer": "Pylance", + "[python]": { + "editor.codeActionsOnSave": { + "source.organizeImports": true + } + }, + "files.exclude": { + "**/.git": true, + "**/.svn": true, + "**/.hg": true, + "**/CVS": true, + "**/.DS_Store": true, + "**/Thumbs.db": true, + "**/__pycache__": true, + "**/.mypy_cache": true, + }, + "nixEnvSelector.nixFile": "${workspaceRoot}/shell.nix", +}