🔧 (home/vscode) enable autoformatting with ruff for python
This commit is contained in:
parent
c4b667b2af
commit
221818eb89
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue