🔧 (home/vscode) enable autoformatting with ruff for python

This commit is contained in:
Laureηt 2024-06-24 15:10:30 +02:00
parent c4b667b2af
commit 221818eb89
Signed by: Laurent
SSH key fingerprint: SHA256:pb5NrYg80So5z9hmqQFPmp//sgr+DFeJkKhmGyU2NLk

View file

@ -19,6 +19,7 @@
tamasfe.even-better-toml tamasfe.even-better-toml
yzhang.markdown-all-in-one yzhang.markdown-all-in-one
usernamehw.errorlens usernamehw.errorlens
charliermarsh.ruff
]; ];
userSettings = { userSettings = {
"editor.formatOnSave" = true; "editor.formatOnSave" = true;
@ -57,6 +58,13 @@
"python.analysis.inlayHints.pytestParameters" = true; "python.analysis.inlayHints.pytestParameters" = true;
"python.analysis.inlayHints.callArgumentNames" = "partial"; "python.analysis.inlayHints.callArgumentNames" = "partial";
"python.analysis.inlayHints.variableTypes" = true; "python.analysis.inlayHints.variableTypes" = true;
"[python]" = {
"editor.defaultFormatter" = "charliermarsh.ruff";
"editor.codeActionsOnSave" = {
"source.organizeImports" = "always";
"source.fixAll" = "always";
};
};
"files.exclude" = { "files.exclude" = {
# defaults # defaults
"**/.git" = true; "**/.git" = true;