Skip to content

thiagowfx/pre-commit-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thiagowfx's pre-commit hooks

A collection of pre-commit hooks.

Installation

To use these hooks, you'll need to have pre-commit installed. You can install it using pip:

pip install pre-commit

Or using Homebrew on macOS:

brew install pre-commit

Usage

Add the following to your .pre-commit-config.yaml file:

repos:
  - repo: https://github.com/thiagowfx/pre-commit-hooks
    rev: {tag}  # Replace with the latest tag
    hooks:
      - id: forbid-colon-filenames
      - id: just-format
      - id: pint

Then, run pre-commit autoupdate to update the hooks to the latest version and pre-commit install to install the hooks in your local repository.

Available Hooks

forbid-colon-filenames

This hook forbids filenames containing colons (:). This is useful to prevent issues with filesystems that do not support colons in filenames.

just-format (format-justfiles)

This hook formats Justfiles using just --fmt. It requires just to be installed and available in your PATH.

pint

This hook validates Prometheus rules with pint.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages