Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor pre commit checks #7

Merged
merged 3 commits into from
Nov 8, 2024
Merged

refactor pre commit checks #7

merged 3 commits into from
Nov 8, 2024

Conversation

refnode
Copy link
Owner

@refnode refnode commented Nov 8, 2024

Update flake input for pre-commit-hooks, as the repo was renamed to git-hooks.

Refactoring the pre-commit-hooks configuration, following the example
provided in the README to use checks for that. Instead of keeping the
checks in flake.nix directly, start to manage the checks in the
checks dir.

Rename the original buildInputs attribute of mkShell as
nativeBuildInputs should be used for commands that need to run
at build time like cmake or shell hooks, according to a discourse
thread.

So that would also be the case for the pkgs required by the
pre-commit-checks, but I keep the config as given in the README
first.

Active common checks for typical format weaknesses.

Update flake input for pre-commit-hooks, as the repo was renamed to git-hooks.

Refactoring the pre-commit-hooks configuration, following the example
provided in the README to use checks for that. Instead of keeping the
checks in `flake.nix` directly, start to manage the checks in the
checks dir.

Rename the original buildInputs attribute of mkShell as
nativeBuildInputs should be used for commands that need to run
at build time like cmake or shell hooks, according to a discourse
thread.

So that would also be the case for the pkgs required by the
pre-commit-checks, but I keep the config as given in the README
first.
@refnode refnode merged commit 167d53e into main Nov 8, 2024
4 checks passed
@refnode refnode deleted the refactor-pre-commit-checks branch November 8, 2024 21:19
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.

1 participant