add more formatter
parent
7f6af15b82
commit
233c80b94e
@ -1,14 +1,19 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
{pkgs ? import <nixpkgs> {}}:
|
||||
with pkgs;
|
||||
|
||||
mkShell {
|
||||
mkShell {
|
||||
buildInputs = [
|
||||
python3.pkgs.pytest
|
||||
python3.pkgs.flake8
|
||||
python3.pkgs.black
|
||||
python3.pkgs.mypy
|
||||
|
||||
gofumpt
|
||||
golangci-lint
|
||||
alejandra
|
||||
vault
|
||||
systemd
|
||||
hivemind
|
||||
go
|
||||
treefmt
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,21 @@
|
||||
[formatter.nix]
|
||||
command = "alejandra"
|
||||
includes = ["*.nix"]
|
||||
|
||||
[formatter.python]
|
||||
command = "sh"
|
||||
options = [
|
||||
"-eucx",
|
||||
"""
|
||||
flake8 "$@"
|
||||
black "$@"
|
||||
"""
|
||||
]
|
||||
includes = ["*.py"]
|
||||
excludes = []
|
||||
|
||||
[formatter.go]
|
||||
command = "gofumpt"
|
||||
options = ["-w"]
|
||||
includes = ["*.go"]
|
||||
excludes = []
|
Loading…
Reference in New Issue