pre-commit

command module
v0.0.0-...-e1e19d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 7 Imported by: 0

README

pre-commit

Since I use multiple languages (Bash, Go, Python, Rust, Terraform) it's not very fun to remember all the hooks I need to use...

Usage

  - repo: https://github.com/kahnwong/pre-commit
    rev: "master"
    hooks:
      # -- go -- #
      - id: go-build
      - id: go-fmt
      - id: go-imports
      - id: go-mod-tidy
      - id: go-unit-tests
      - id: go-vet
      - id: golangci-lint
      # -- python -- #
      - id: ruff-check
      - id: ruff-format
      - id: uv-export
      - id: mypy
      - id: nbstripout
      # -- rust -- #
      - id: rust-fmt
      - id: cargo-check
      - id: cargo-clippy
      # -- terraform -- #
      - id: terraform-fmt
      - id: terraform-validate
      - id: terraform-docs
      - id: terraform-trivy
      # -- ops -- #
      - id: yamlfmt
      - id: hadolint
      - id: shellcheck
      - id: shfmt
      - id: trufflehog
      # -- misc -- #
      - id: nix-fmt
      - id: yarn-prettier
      - id: markdownlint-cli2
      - id: sqruff-lint
      - id: sqruff-fix

Refs

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
tests
go Module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL