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