Skip to content

Commit

Permalink
Removed the pre-commit-hooks in favour of using the same tools from
Browse files Browse the repository at this point in the history
`flake-lang`; and hence removed `pkgs.nix`
  • Loading branch information
jared committed Feb 6, 2024
1 parent 0517d84 commit 52daf94
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 80 deletions.
44 changes: 0 additions & 44 deletions extras/pre-commit-hooks-extra.nix

This file was deleted.

1 change: 0 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
./pkgs.nix
./settings.nix
./pre-commit.nix
./hercules-ci.nix
Expand Down
32 changes: 0 additions & 32 deletions pkgs.nix

This file was deleted.

12 changes: 9 additions & 3 deletions pre-commit.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ inputs, ... }: {
imports = [
./extras/pre-commit-hooks-extra.nix
inputs.proto-nix.lib.preCommitModule
inputs.flake-lang.flakeModule.rustMonorepoPreCommit
];
perSystem = { config, pkgs, ... }:
{
Expand Down Expand Up @@ -37,8 +37,14 @@
dhall-format.enable = true;
purty.enable = true;
rustfmt-monorepo.enable = true;
my-denofmt.enable = true;
my-denolint.enable = true;
denofmt = {
enable = true;
# Note(jaredponn): We follow the default files this formats, except
# we exclude markdown files. See
# [1] https://docs.deno.com/runtime/manual/tools/formatter
files = ''^.*\.(js|ts|jsx|tsx|json|jsonc)$'';
};
denolint.enable = true;
protolint.enable = true;
txtpbfmt.enable = true;
};
Expand Down

0 comments on commit 52daf94

Please sign in to comment.