Skip to content

Commit

Permalink
treefmt: cosmetic change
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Dec 12, 2024
1 parent ee48ddf commit 032eca4
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions treefmt.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{ lib, inputs, ... }:
{
inputs,
...
}:
{
imports = [
inputs.treefmt-nix.flakeModule
Expand All @@ -11,20 +14,23 @@
# Used to find the project root
projectRootFile = "flake.lock";

programs.deno.enable =
pkgs.lib.meta.availableOn pkgs.stdenv.hostPlatform pkgs.deno && !pkgs.deno.meta.broken;
programs.ruff.format = true;
programs.ruff.check = true;
programs.mypy.enable = true;
programs.nixfmt.enable = pkgs.lib.meta.availableOn pkgs.stdenv.buildPlatform pkgs.nixfmt-rfc-style.compiler;
programs.deadnix.enable = true;

programs.mypy.directories = {
"." = {
directory = ".";
extraPythonPackages = [
pkgs.python3.pkgs.pytest
];
programs = {
deno.enable =
pkgs.lib.meta.availableOn pkgs.stdenv.hostPlatform pkgs.deno && !pkgs.deno.meta.broken;
ruff = {
format = true;
check = true;
};
mypy.enable = true;
nixfmt.enable = pkgs.lib.meta.availableOn pkgs.stdenv.buildPlatform pkgs.nixfmt-rfc-style.compiler;
deadnix.enable = true;
mypy.directories = {
"." = {
directory = ".";
extraPythonPackages = [
pkgs.python3Packages.pytest
];
};
};
};
};
Expand Down

0 comments on commit 032eca4

Please sign in to comment.