🔧 (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
yzhang.markdown-all-in-one
usernamehw.errorlens
charliermarsh.ruff
];
userSettings = {
"editor.formatOnSave" = true;
@ -57,6 +58,13 @@
"python.analysis.inlayHints.pytestParameters" = true;
"python.analysis.inlayHints.callArgumentNames" = "partial";
"python.analysis.inlayHints.variableTypes" = true;
"[python]" = {
"editor.defaultFormatter" = "charliermarsh.ruff";
"editor.codeActionsOnSave" = {
"source.organizeImports" = "always";
"source.fixAll" = "always";
};
};
"files.exclude" = {
# defaults
"**/.git" = true;