add hydra, update ruff, format files
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
29
flake.nix
29
flake.nix
@ -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; };
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user