Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Pre commit #10

Merged
merged 19 commits into from
Oct 7, 2019
Merged

Pre commit #10

merged 19 commits into from
Oct 7, 2019

Conversation

roberth
Copy link
Member

@roberth roberth commented Sep 23, 2019

Adds pre-commit, shell hooks, activation hooks, nixpkgs-fmt.

I will look into extracting the hook modules into nix-pre-commit-hooks; changing that repo to be compatible with project.nix.

TODO

Closes #1

@roberth roberth marked this pull request as ready for review September 24, 2019 09:13
@roberth roberth requested a review from domenkozar September 24, 2019 10:58
bors bot added a commit to cachix/git-hooks.nix that referenced this pull request Oct 2, 2019
19: Use the module system r=roberth a=roberth

Closes #2
Closes #17 

TODO
 - [x] ~expose and test "core" module set from project.nix~
 - [x] ~niv update -b master project.nix when that's done (hercules-ci/project.nix#10
 - [x] changelog entry: (elaborate on) translate `.pre-commit-config.yaml` to hooks argument
 - [x] update README
 - [x] add how to add a hook to README

New
 - Selectively enable tools (#2)
 - Make choice of tool versions overridable
 - User-definable hooks
 - Input validation at the Nix level
 - Use gitignore by default

Fixes
 - Stop installing files all over the place when doing nix-shell ../some-project to borrow a tool
 - Lorri support

Cleanup
 - Get rid of some installation code

Co-authored-by: Robert Hensing <[email protected]>
modules/pre-commit.nix Outdated Show resolved Hide resolved
Any problems with auto-install should be addressed in the
activation.* options.
If it turns out someone needs these, we can reintroduce it.
For now, we keep it simple.
@roberth roberth requested a review from domenkozar October 7, 2019 09:42
@roberth roberth merged commit efcc07e into master Oct 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add pre-commit
2 participants