Add a formatter.

This commit is contained in:
Nicolas Patry 2024-09-12 11:44:10 +02:00
parent ca934411d1
commit 21832a1d4d
No known key found for this signature in database
GPG Key ID: 64AF4752B2967863

View File

@ -69,6 +69,7 @@
server = pkgs.python3.pkgs.callPackage ./nix/server.nix { inherit nix-filter; }; server = pkgs.python3.pkgs.callPackage ./nix/server.nix { inherit nix-filter; };
in in
{ {
formatter = pkgs.nixfmt-rfc-style;
devShells = with pkgs; rec { devShells = with pkgs; rec {
default = pure; default = pure;
@ -81,18 +82,19 @@
]; ];
}; };
test = mkShell { test = mkShell {
buildInputs = [ buildInputs =
benchmark [
launcher benchmark
router launcher
server router
] server
++ (with python3.pkgs; [ ]
docker ++ (with python3.pkgs; [
pytest docker
pytest-asyncio pytest
syrupy pytest-asyncio
]); syrupy
]);
}; };
impure = mkShell { impure = mkShell {