Skip to content

Instantly share code, notes, and snippets.

@ojos
Created October 10, 2024 09:22
Show Gist options
  • Save ojos/7fcfcd23327fef92d848fe01b45a55a2 to your computer and use it in GitHub Desktop.
Save ojos/7fcfcd23327fef92d848fe01b45a55a2 to your computer and use it in GitHub Desktop.
vscode python開発環境用
{
"terminal.integrated.scrollback": 100000000,
// "editor.defaultFormatter": "esbenp.prettier-vscode",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"terminal.integrated.env.linux": {
"PATH": "/workspaces/bin:${env:PATH}"
},
"editor.renderWhitespace": "all",
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.analysis.completeFunctionParens": true,
"python.analysis.typeCheckingMode": "basic",
// "python.analysis.extraPaths": ["/usr/local/lib/python3.12/site-packages"],
// "python.analysis.useLibraryCodeForTypes": true,
// "python.analysis.diagnosticMode": "workspace",
"black-formatter.args": ["--config=/workspaces/pyproject.toml"],
"mypy-type-checker.args": ["--config=/workspaces/pyproject.toml"],
"ruff.lint.args": ["--config=/workspaces/pyproject.toml"],
// "ruff.path": ["/usr/local/bin/ruff"],
// "ruff.interpreter": ["/usr/local/bin/python"],
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSaveMode": "file",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports.ruff": "explicit"
}
},
"[json][jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
}
},
"[terraform]": {
"editor.defaultFormatter": "hashicorp.terraform",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.formatAll.terraform": "explicit"
}
},
"[terraform-vars]": {
"editor.defaultFormatter": "hashicorp.terraform",
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.formatAll.terraform": "explicit"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment