Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.53 KB

README.md

File metadata and controls

40 lines (27 loc) · 1.53 KB

Build Status Azure DevOps coverage pre-commit.ci status

pre-commit-hooks

Custom pre-commit hooks. Repo copied from https://github.com/pre-commit/pre-commit-hooks

See also: https://github.com/pre-commit/pre-commit

Using pre-commit-hooks with pre-commit

Add this to your .pre-commit-config.yaml

-   repo: https://github.com/scottgigante-immunai/pre-commit-hooks
    rev: v0.3.2
    hooks:
    -   id: check-case-insensitive-paths
    -   id: check-makefile
    #   args: ['--target=all', '--target=help']

Hooks available

check-makefile

Check makefile syntax

  • Replaces leading spaces with tabs
  • Runs make --dry-run to check syntax

check-case-insensitive-paths

Ensures that no two files or directories exist that would conflict in a case-insensitive filesystem.

As a standalone package

If you'd like to use these hooks, they're also available as a standalone package.

Simply pip install git+https://github.com/scottgigante-immunai/pre-commit-hooks