qenya/vscode: settings for python formatting and linting
This commit is contained in:
parent
befc4ac699
commit
8e4b0d26b3
|
@ -11,11 +11,14 @@ in
|
||||||
enableUpdateCheck = false;
|
enableUpdateCheck = false;
|
||||||
package = pkgs.vscodium;
|
package = pkgs.vscodium;
|
||||||
extensions = with pkgs.vscode-extensions; [
|
extensions = with pkgs.vscode-extensions; [
|
||||||
|
charliermarsh.ruff
|
||||||
dbaeumer.vscode-eslint
|
dbaeumer.vscode-eslint
|
||||||
eamodio.gitlens
|
eamodio.gitlens
|
||||||
golang.go
|
golang.go
|
||||||
jdinhlife.gruvbox
|
jdinhlife.gruvbox
|
||||||
jnoortheen.nix-ide
|
jnoortheen.nix-ide
|
||||||
|
matangover.mypy
|
||||||
|
ms-python.black-formatter
|
||||||
ms-python.python
|
ms-python.python
|
||||||
];
|
];
|
||||||
mutableExtensionsDir = false;
|
mutableExtensionsDir = false;
|
||||||
|
@ -56,6 +59,18 @@ in
|
||||||
"formatting.gofumpt" = true;
|
"formatting.gofumpt" = true;
|
||||||
"ui.semanticTokens" = true;
|
"ui.semanticTokens" = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"[python]" = {
|
||||||
|
"editor.defaultFormatter" = "ms-python.black-formatter";
|
||||||
|
"editor.formatOnSave" = true;
|
||||||
|
"editor.codeActionsOnSave" = {
|
||||||
|
"source.fixAll" = "explicit";
|
||||||
|
"source.organizeImports" = "explicit";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"ruff.nativeServer" = "on";
|
||||||
|
"ruff.path" = "${pkgs.ruff}/bin/ruff";
|
||||||
|
"mypy.dmypyExecutable" = "${pkgs.mypy}/bin/dmypy";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue