mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-23 11:32:10 +00:00
feat: add VSCode configuration files for Python development (#32263)
This commit is contained in:
parent
96cbd90cba
commit
904066f1ec
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,4 @@
|
|||||||
.vs/
|
.vs/
|
||||||
.vscode/
|
|
||||||
.idea/
|
.idea/
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
21
.vscode/extensions.json
vendored
Normal file
21
.vscode/extensions.json
vendored
Normal file
@ -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",
|
||||||
|
],
|
||||||
|
}
|
80
.vscode/settings.json
vendored
Normal file
80
.vscode/settings.json
vendored
Normal file
@ -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
|
||||||
|
},
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user