Skip to content

Commit 904066f

Browse files
authored
feat: add VSCode configuration files for Python development (#32263)
1 parent 96cbd90 commit 904066f

File tree

3 files changed

+101
-1
lines changed

3 files changed

+101
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.vs/
2-
.vscode/
32
.idea/
43
# Byte-compiled / optimized / DLL files
54
__pycache__/

.vscode/extensions.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"recommendations": [
3+
"ms-python.python",
4+
"charliermarsh.ruff",
5+
"ms-python.mypy-type-checker",
6+
"ms-toolsai.jupyter",
7+
"ms-toolsai.jupyter-keymap",
8+
"ms-toolsai.jupyter-renderers",
9+
"ms-toolsai.vscode-jupyter-cell-tags",
10+
"ms-toolsai.vscode-jupyter-slideshow",
11+
"yzhang.markdown-all-in-one",
12+
"davidanson.vscode-markdownlint",
13+
"bierner.markdown-mermaid",
14+
"bierner.markdown-preview-github-styles",
15+
"eamodio.gitlens",
16+
"github.vscode-pull-request-github",
17+
"github.vscode-github-actions",
18+
"redhat.vscode-yaml",
19+
"editorconfig.editorconfig",
20+
],
21+
}

.vscode/settings.json

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"python.analysis.include": [
3+
"libs/**",
4+
"docs/**",
5+
"cookbook/**"
6+
],
7+
"python.analysis.exclude": [
8+
"**/node_modules",
9+
"**/__pycache__",
10+
"**/.pytest_cache",
11+
"**/.*",
12+
"_dist/**",
13+
"docs/_build/**",
14+
"docs/api_reference/_build/**"
15+
],
16+
"python.analysis.autoImportCompletions": true,
17+
"python.analysis.typeCheckingMode": "basic",
18+
"python.testing.cwd": "${workspaceFolder}",
19+
"python.linting.enabled": true,
20+
"python.linting.ruffEnabled": true,
21+
"[python]": {
22+
"editor.formatOnSave": true,
23+
"editor.codeActionsOnSave": {
24+
"source.organizeImports": "explicit",
25+
"source.fixAll": "explicit"
26+
},
27+
"editor.defaultFormatter": "charliermarsh.ruff"
28+
},
29+
"editor.rulers": [
30+
88
31+
],
32+
"editor.tabSize": 4,
33+
"editor.insertSpaces": true,
34+
"editor.trimAutoWhitespace": true,
35+
"files.trimTrailingWhitespace": true,
36+
"files.insertFinalNewline": true,
37+
"files.exclude": {
38+
"**/__pycache__": true,
39+
"**/.pytest_cache": true,
40+
"**/*.pyc": true,
41+
"**/.mypy_cache": true,
42+
"**/.ruff_cache": true,
43+
"_dist/**": true,
44+
"docs/_build/**": true,
45+
"docs/api_reference/_build/**": true,
46+
"**/node_modules": true,
47+
"**/.git": false
48+
},
49+
"search.exclude": {
50+
"**/__pycache__": true,
51+
"**/*.pyc": true,
52+
"_dist/**": true,
53+
"docs/_build/**": true,
54+
"docs/api_reference/_build/**": true,
55+
"**/node_modules": true,
56+
"**/.git": true,
57+
"uv.lock": true,
58+
"yarn.lock": true
59+
},
60+
"git.autofetch": true,
61+
"git.enableSmartCommit": true,
62+
"jupyter.askForKernelRestart": false,
63+
"jupyter.interactiveWindow.textEditor.executeSelection": true,
64+
"[markdown]": {
65+
"editor.wordWrap": "on",
66+
"editor.quickSuggestions": {
67+
"comments": "off",
68+
"strings": "off",
69+
"other": "off"
70+
}
71+
},
72+
"[yaml]": {
73+
"editor.tabSize": 2,
74+
"editor.insertSpaces": true
75+
},
76+
"[json]": {
77+
"editor.tabSize": 2,
78+
"editor.insertSpaces": true
79+
},
80+
}

0 commit comments

Comments
 (0)