diff --git a/.gitignore b/.gitignore index 45b7e68..a81c8ee 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ -settings.json - # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..35cfbbd --- /dev/null +++ b/.vscode/settings.json @@ -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 + } + } +} \ No newline at end of file