Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: aRustyDev/pre-commit-hooks
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: aRustyDev/pre-commit-hooks
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: feature/nix-hooks
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 11 files changed
  • 2 contributors

Commits on Mar 19, 2025

  1. Configuration menu
    Copy the full SHA
    0e0c7cd View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2025

  1. feat(nix): Add comprehensive Nix pre-commit hooks

    This commit introduces six new pre-commit hooks for Nix development:
    
    1. **nix-flake-check**: Validates flake.nix files using `nix flake check`
    2. **nix-build-check**: Tests Nix builds for both flakes and legacy expressions
    3. **nix-darwin-check**: Validates nix-darwin configurations (Darwin-only)
    4. **nix-home-manager-check**: Tests home-manager configurations
    5. **nix-fmt**: Formats Nix files (supports nixpkgs-fmt, alejandra, nixfmt)
    6. **nix-lint**: Lints Nix files using statix and optionally deadnix
    
    All hooks include:
    - Automatic tool installation if missing
    - Support for both flakes and legacy Nix
    - Clear error messages
    - Configurable behavior via environment variables
    
    Also includes test fixtures for validating hook functionality.
    
    Closes #15, Closes #16, Closes #17, Closes #18, Closes #19, Closes #20, Closes #21
    
    🤖 Generated with [Claude Code](https://claude.ai/code)
    
    Co-Authored-By: Claude <[email protected]>
    aRustyDev and claude committed Jul 8, 2025
    Configuration menu
    Copy the full SHA
    f97d3ae View commit details
    Browse the repository at this point in the history
Loading