Skip to content

Conversation

@bladyjoker
Copy link
Contributor

@bladyjoker bladyjoker commented Feb 2, 2024

DONE

  • Tested in client repo and the 8ba7752 commit works

jared added 2 commits February 2, 2024 18:31
- Removed `./examples/pre-commit.nix` in favour of augmenting
  `./pre-commit.nix`
   - Justification: I'd prefer to keep all the `pre-commit` things in a
     single file.

- Added a `flakeModule.rustMonorepoPreCommit` attribute which contains a
  module for formatting rust code
    - Justification: This copies the API given in
      https://github.com/cachix/pre-commit-hooks.nix/blob/7c54e08a689b53c8a1e5d70169f2ec9e2a68ffaf/flake.nix#L27.
      My reading of this is that we want to expose a flake module which
      enables the rust formatter. @szg251 if we're happy with this, I
      can try to get this patched in `pre-commit-hooks.nix` as a more
      permanent fix.

- Removed deno precommit hooks
    - Justification: originally we rolled our own `deno` precommit
      things because the default was slightly broken. But it has now
      been patched -- see cachix/git-hooks.nix#377
@jaredponn
Copy link
Contributor

@bladyjoker I picked up on this in #21

…-migration

Migrating precommit hooks from LB
@bladyjoker bladyjoker self-assigned this Feb 5, 2024
@bladyjoker bladyjoker requested a review from jaredponn February 5, 2024 19:36
@bladyjoker
Copy link
Contributor Author

@jaredponn PTAL. We need to open issues for adding examples and versioning.

@jaredponn jaredponn force-pushed the bladyjoker/flake-lang-migration branch from 7a1c39a to 8ba7752 Compare February 6, 2024 08:23
@jaredponn
Copy link
Contributor

@bladyjoker looks good to me.

I made one minor edit:

@jaredponn jaredponn merged commit 2e4ca66 into master Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants