diff --git a/.vscode/settings.json b/.vscode/settings.json index 6599701..8009225 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,54 +1,67 @@ { - "editor.insertSpaces": true, - "editor.tabSize": 4, + "editor.insertSpaces": true, + "editor.tabSize": 4, + "files.trimTrailingWhitespace": true, + "editor.rulers": [100, 120], - "python.analysis.diagnosticMode": "openFilesOnly", - "python.linting.enabled": false, - "python.analysis.extraPaths": [ - "./stable-diffusion-webui/", - "./stable-diffusion-webui/repositories/", - "./misc/stable-diffusion-webui/", - "./misc/stable-diffusion-webui/repositories/" - ], + "files.associations": { + "*.yaml": "yaml" + }, + "files.exclude": { + "**/.git": true, + "**/.svn": true, + "**/.hg": true, + "**/CVS": true, + "**/.DS_Store": true, + "**/Thumbs.db": true, + "**/.ruff_cache": true, + "**/__pycache__": true, + "**/*.egg-info": true + }, - "[shellscript]": { - "files.eol": "\n", - "editor.tabSize": 4, - "editor.detectIndentation": false - }, + "[shellscript]": { + "files.eol": "\n", + "editor.tabSize": 4, + "editor.detectIndentation": false + }, - "[python]": { - "editor.tabSize": 4, - "editor.detectIndentation": false - }, + "[python]": { + "editor.wordBasedSuggestions": "off", + "editor.formatOnSave": true, + "editor.defaultFormatter": "charliermarsh.ruff", + "editor.codeActionsOnSave": { + "source.organizeImports": "always" + } + }, + "python.analysis.include": ["./src", "./scripts", "./tests"], - "[json]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.detectIndentation": false, - "editor.formatOnSaveMode": "file", - "editor.formatOnSave": true, - "editor.tabSize": 2 - }, - "[jsonc]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.detectIndentation": false, - "editor.formatOnSaveMode": "file", - "editor.formatOnSave": true, - "editor.tabSize": 2 - }, + "[json]": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.detectIndentation": false, + "editor.formatOnSaveMode": "file", + "editor.formatOnSave": true, + "editor.tabSize": 2 + }, + "[jsonc]": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.detectIndentation": false, + "editor.formatOnSaveMode": "file", + "editor.formatOnSave": true, + "editor.tabSize": 2 + }, - "[yaml]": { - "editor.detectIndentation": false, - "editor.tabSize": 2, - "editor.formatOnSave": true, - "editor.formatOnSaveMode": "file", - "diffEditor.ignoreTrimWhitespace": false - }, + "[yaml]": { + "editor.detectIndentation": false, + "editor.tabSize": 2, + "editor.formatOnSave": true, + "editor.formatOnSaveMode": "file", + "diffEditor.ignoreTrimWhitespace": false + }, - "[hcl]": { - "editor.detectIndentation": false, - "editor.formatOnSave": true, - "editor.formatOnSaveMode": "file", - "editor.defaultFormatter": "fredwangwang.vscode-hcl-format" - } + "[hcl]": { + "editor.detectIndentation": false, + "editor.formatOnSave": true, + "editor.formatOnSaveMode": "file", + "editor.defaultFormatter": "fredwangwang.vscode-hcl-format" + } }