adding .vscode/settings.json

This commit is contained in:
Mose Müller 2023-08-02 12:13:04 +02:00
parent 53afb139f2
commit b4b2600bf6
2 changed files with 40 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,5 +1,3 @@
settings.json
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files
__pycache__/ __pycache__/
*.py[cod] *.py[cod]

40
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,40 @@
{
"autoDocstring.docstringFormat": "google",
"autoDocstring.startOnNewLine": true,
"autoDocstring.generateDocstringOnEnter": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.rulers": [
88
],
"python.defaultInterpreterPath": ".venv/bin/python",
"python.formatting.provider": "black",
"python.linting.lintOnSave": true,
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.linting.mypyEnabled": true,
"[python]": {
"editor.tabSize": 4,
"editor.detectIndentation": false,
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"[yaml]": {
"editor.tabSize": 2,
"editor.detectIndentation": false
},
"[typescript][javascript][vue][typescriptreact]": {
"editor.tabSize": 2,
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint",
"editor.formatOnPaste": false, // required
"editor.formatOnType": false, // required
"editor.formatOnSave": true, // optional
"editor.formatOnSaveMode": "file", // required to format on save
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
}