Skip to content

rbroderi/precommithooks

Repository files navigation

precommithooks

GitHub License Code style: black Generic badge Generic badge Generic badge Generic badge Dynamic TOML Badge

My custom precommit hooks, including a pep-8 filename check

Description

Usage:

Default

  - repo: https://github.com/rbroderi/precommithooks
    rev: v1.0.1
    hooks:
      - id: python_file_name_check
        name: "Python: File name check"
        verbose: true

Strict mode

  - repo: https://github.com/rbroderi/precommithooks
    rev: v1.0.1
    hooks:
      - id: python_file_name_check
        name: "Python: File name check"
        args: [--strict]
        verbose: true

Args

  • --strict (default to false)
  • --short-name-limit (defaults to 30)
  • --ignore-test-files (defaults to false)