diff --git a/.gitignore b/.gitignore index 4f476c95e73..3248d1419c6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ .vs/ -.vscode/ .idea/ # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 00000000000..bd649974f2e --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,21 @@ +{ + "recommendations": [ + "ms-python.python", + "charliermarsh.ruff", + "ms-python.mypy-type-checker", + "ms-toolsai.jupyter", + "ms-toolsai.jupyter-keymap", + "ms-toolsai.jupyter-renderers", + "ms-toolsai.vscode-jupyter-cell-tags", + "ms-toolsai.vscode-jupyter-slideshow", + "yzhang.markdown-all-in-one", + "davidanson.vscode-markdownlint", + "bierner.markdown-mermaid", + "bierner.markdown-preview-github-styles", + "eamodio.gitlens", + "github.vscode-pull-request-github", + "github.vscode-github-actions", + "redhat.vscode-yaml", + "editorconfig.editorconfig", + ], +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000000..93dae04eff7 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,80 @@ +{ + "python.analysis.include": [ + "libs/**", + "docs/**", + "cookbook/**" + ], + "python.analysis.exclude": [ + "**/node_modules", + "**/__pycache__", + "**/.pytest_cache", + "**/.*", + "_dist/**", + "docs/_build/**", + "docs/api_reference/_build/**" + ], + "python.analysis.autoImportCompletions": true, + "python.analysis.typeCheckingMode": "basic", + "python.testing.cwd": "${workspaceFolder}", + "python.linting.enabled": true, + "python.linting.ruffEnabled": true, + "[python]": { + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.organizeImports": "explicit", + "source.fixAll": "explicit" + }, + "editor.defaultFormatter": "charliermarsh.ruff" + }, + "editor.rulers": [ + 88 + ], + "editor.tabSize": 4, + "editor.insertSpaces": true, + "editor.trimAutoWhitespace": true, + "files.trimTrailingWhitespace": true, + "files.insertFinalNewline": true, + "files.exclude": { + "**/__pycache__": true, + "**/.pytest_cache": true, + "**/*.pyc": true, + "**/.mypy_cache": true, + "**/.ruff_cache": true, + "_dist/**": true, + "docs/_build/**": true, + "docs/api_reference/_build/**": true, + "**/node_modules": true, + "**/.git": false + }, + "search.exclude": { + "**/__pycache__": true, + "**/*.pyc": true, + "_dist/**": true, + "docs/_build/**": true, + "docs/api_reference/_build/**": true, + "**/node_modules": true, + "**/.git": true, + "uv.lock": true, + "yarn.lock": true + }, + "git.autofetch": true, + "git.enableSmartCommit": true, + "jupyter.askForKernelRestart": false, + "jupyter.interactiveWindow.textEditor.executeSelection": true, + "[markdown]": { + "editor.wordWrap": "on", + "editor.quickSuggestions": { + "comments": "off", + "strings": "off", + "other": "off" + } + }, + "[yaml]": { + "editor.tabSize": 2, + "editor.insertSpaces": true + }, + "[json]": { + "editor.tabSize": 2, + "editor.insertSpaces": true + }, +}