From b1dfbdb2aa909f0461a73162e1a1838f2ab6c250 Mon Sep 17 00:00:00 2001 From: cccs-kevin Date: Mon, 29 May 2023 16:24:28 +0000 Subject: [PATCH] Updating code styles in vscode --- .vscode/settings.json | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 54c0116..49d23d0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,22 +1,38 @@ { - "python.linting.flake8Args": [ - "--max-line-length=120", - //Added the ignore of E203 for now : https://github.com/PyCQA/pycodestyle/issues/373 - "--ignore=E203,W503" - ], "editor.codeActionsOnSave": { "source.organizeImports": true, }, + "editor.formatOnSave": true, + "editor.rulers": [ + 120 + ], + "editor.tabSize": 4, "editor.wordWrap": "wordWrapColumn", "editor.wordWrapColumn": 120, - "python.formatting.provider": "black", - "python.formatting.blackArgs": [ - "--line-length=120" - ], + "files.insertFinalNewline": true, + "files.trimFinalNewlines": true, + "files.trimTrailingWhitespace": true, "isort.args": [ "-l", "120", "--profile=black", // "--src=${workspaceFolder}" - ] + ], + "python.formatting.autopep8Args": [ + "--max-line-length", + "120", + "--experimental" + ], + "python.formatting.provider": "autopep8", + "python.formatting.blackArgs": [ + "--line-length=120" + ], + "python.linting.enabled": true, + "python.linting.flake8Enabled": true, + "python.linting.flake8Args": [ + "--max-line-length=120", + //Added the ignore of E203 for now : https://github.com/PyCQA/pycodestyle/issues/373 + "--ignore=E203,W503" + ], + "python.linting.pylintEnabled": false, }