From 9f94f98742335d7c4d4524b54642a19088b28ce5 Mon Sep 17 00:00:00 2001 From: TDEMARES Date: Wed, 14 Feb 2024 15:28:37 +0100 Subject: [PATCH] modif setting --- .vscode/extensions.json | 9 +++++++++ .vscode/launch.json | 3 --- .vscode/settings.json | 13 +++++++++---- setup.cfg | 2 ++ 4 files changed, 20 insertions(+), 7 deletions(-) create mode 100644 .vscode/extensions.json create mode 100644 setup.cfg diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..7d07e20 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,9 @@ +{ + "recommendations": [ + "ms-python.python", + "ms-python.vscode-pylance", + "ms-python.black-formatter", + "ms-python.isort", + "ms-python.flake8", + ] +} diff --git a/.vscode/launch.json b/.vscode/launch.json index 306f58e..8cd635d 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,7 +1,4 @@ { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { diff --git a/.vscode/settings.json b/.vscode/settings.json index fd6055a..8747477 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,9 +1,12 @@ { "[python]": { "editor.defaultFormatter": "ms-python.black-formatter", - "editor.formatOnSave": true + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.organizeImports": "always", + "source.unusedImports": "always" + } }, - "python.envFile": "${workspaceFolder}/.env", "terminal.integrated.env.windows": { "PYTHONPATH": "${workspaceFolder}" }, @@ -12,6 +15,8 @@ ], "python.testing.unittestEnabled": false, "python.testing.pytestEnabled": true, - "editor.rulers": [145, 147], - "autoDocstring.docstringFormat": "numpy" + "editor.rulers": [ + 98, + 100 + ], } diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..bf750d2 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[flake8] +max-line-length = 99 \ No newline at end of file