add more formatter
parent
7f6af15b82
commit
233c80b94e
@ -1,14 +1,13 @@
|
||||
with import <nixpkgs> {};
|
||||
|
||||
buildGoModule {
|
||||
name = "systemd-vaultd";
|
||||
src = ./.;
|
||||
vendorSha256 = null;
|
||||
meta = with lib; {
|
||||
description = "A proxy for secrets between systemd services and vault";
|
||||
homepage = "https://github.com/numtide/systemd-vaultd";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ mic92 ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
buildGoModule {
|
||||
name = "systemd-vaultd";
|
||||
src = ./.;
|
||||
vendorSha256 = null;
|
||||
meta = with lib; {
|
||||
description = "A proxy for secrets between systemd services and vault";
|
||||
homepage = "https://github.com/numtide/systemd-vaultd";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [mic92];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
@ -1,14 +1,19 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
{pkgs ? import <nixpkgs> {}}:
|
||||
with pkgs;
|
||||
mkShell {
|
||||
buildInputs = [
|
||||
python3.pkgs.pytest
|
||||
python3.pkgs.flake8
|
||||
python3.pkgs.black
|
||||
python3.pkgs.mypy
|
||||
|
||||
mkShell {
|
||||
buildInputs = [
|
||||
python3.pkgs.pytest
|
||||
golangci-lint
|
||||
vault
|
||||
systemd
|
||||
hivemind
|
||||
go
|
||||
];
|
||||
}
|
||||
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