add hydra, update ruff, format files

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
2024-07-15 19:42:22 -04:00
parent 1736643635
commit 03e9a3652f
9 changed files with 242 additions and 63 deletions

View File

@ -18,8 +18,16 @@
};
};
outputs = { self, nixpkgs, flake-utils, poetry2nix,pre-commit-hooks }@inputs:
flake-utils.lib.eachDefaultSystem (system:
outputs =
{
self,
nixpkgs,
flake-utils,
poetry2nix,
...
}@inputs:
flake-utils.lib.eachDefaultSystem (
system:
let
# see https://github.com/nix-community/poetry2nix/tree/master#api for more functions and examples.
pkgs = nixpkgs.legacyPackages.${system};
@ -33,7 +41,18 @@
formatter = pkgs.nixfmt-rfc-style;
devShells = import ./shell.nix {inherit self inputs system checks;};
checks = import ./checks.nix {inherit inputs system formatter;};
});
devShells = import ./shell.nix {
inherit
self
inputs
system
checks
;
};
checks = import ./checks.nix { inherit inputs system formatter; };
}
)
// {
hydraJobs = import ./hydra/jobs.nix { inherit (self) inputs outputs; };
};
}