From 6c792b2f4c427131193717c2a80b28f0bdb5e8df Mon Sep 17 00:00:00 2001 From: oddlama Date: Fri, 22 Nov 2024 23:40:15 +0100 Subject: [PATCH] chore: format --- .../flake.nix | 58 +++++++++---------- examples/esp32/bme280/build.rs | 2 +- flake.nix | 1 - statix.toml | 4 -- 4 files changed, 30 insertions(+), 35 deletions(-) delete mode 100644 statix.toml diff --git a/contrib/callendar-van-dusen-approximator/flake.nix b/contrib/callendar-van-dusen-approximator/flake.nix index 5dd70a4..580288f 100644 --- a/contrib/callendar-van-dusen-approximator/flake.nix +++ b/contrib/callendar-van-dusen-approximator/flake.nix @@ -8,8 +8,9 @@ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; }; - outputs = inputs: - inputs.flake-parts.lib.mkFlake {inherit inputs;} { + outputs = + inputs: + inputs.flake-parts.lib.mkFlake { inherit inputs; } { imports = [ inputs.devshell.flakeModule ]; @@ -19,34 +20,33 @@ "aarch64-linux" ]; - perSystem = { - pkgs, - system, - ... - }: { - _module.args.pkgs = import inputs.nixpkgs { - inherit system; - config.allowUnfree = true; - config.enableCuda = true; - }; + perSystem = + { + pkgs, + system, + ... + }: + { + _module.args.pkgs = import inputs.nixpkgs { + inherit system; + config.allowUnfree = true; + config.enableCuda = true; + }; - devshells.default = { - packages = [ - ( - pkgs.python3.withPackages ( - p: - with p; [ - torchWithCuda - scipy - numpy - matplotlib - ] - ) - ) - ]; - }; + devshells.default = { + packages = [ + (pkgs.python3.withPackages ( + p: with p; [ + torchWithCuda + scipy + numpy + matplotlib + ] + )) + ]; + }; - formatter = pkgs.nixfmt-rfc-style; # `nix fmt` - }; + formatter = pkgs.nixfmt-rfc-style; # `nix fmt` + }; }; } diff --git a/examples/esp32/bme280/build.rs b/examples/esp32/bme280/build.rs index ecede10..5efe9c9 100644 --- a/examples/esp32/bme280/build.rs +++ b/examples/esp32/bme280/build.rs @@ -1,3 +1,3 @@ fn main() { println!("cargo:rustc-link-arg-bins=-Tlinkall.x"); - } \ No newline at end of file +} diff --git a/flake.nix b/flake.nix index 161e82a..ab4692a 100644 --- a/flake.nix +++ b/flake.nix @@ -54,7 +54,6 @@ }; pre-commit.settings.hooks.treefmt.enable = true; - treefmt = { projectRootFile = "flake.nix"; programs = { diff --git a/statix.toml b/statix.toml deleted file mode 100644 index 8b6d9ae..0000000 --- a/statix.toml +++ /dev/null @@ -1,4 +0,0 @@ -disabled = [ - "repeated_keys" - "empty_list_concat" -]