Skip to content

Commit

Permalink
pre-commit: Init
Browse files Browse the repository at this point in the history
  • Loading branch information
soupglasses committed Jun 5, 2022
1 parent 2c10b1f commit c10a8cf
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
repos:
- repo: local
hooks:
- id: editorconfig-checker
name: Verify Editorconfig
language: system
entry: editorconfig-checker
types: [text]
- id: nixpkgs-fmt
name: Verify Nix Formatting
language: system
entry: nixpkgs-fmt --check
types: [nix]
- id: codespell
name: Check Spelling
language: system
entry: codespell
types: [text]
- id: nix-flake-check
name: Run Nix Flake Checks
language: system
entry: nix flake check --no-build --show-trace
types: [nix]
pass_filenames: false
4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@
nativeBuildInputs = [
# Basic packages
pkgs.nixUnstable
# Testing packages
pkgs.codespell
pkgs.editorconfig-checker
pkgs.nixpkgs-fmt
pkgs.pre-commit
# deploy-rs related
pkgs.deploy-rs
# sops-nix related
Expand Down

0 comments on commit c10a8cf

Please sign in to comment.