Skip to content
 
 

Repository files navigation

build status pre-commit.ci status

pre-commit

A framework for managing and maintaining multi-language pre-commit hooks.

For more information see: https://pre-commit.com/

Forked from https://github.com/pre-commit/pre-commit

Added

fail on modify parameter to 'pre-commit run' command.
That parameter control the behavior of the command when a hook modifies the files.

Example

repos:
  - repo: local
    hooks:
    - id: isort
      name: isort
      entry: isort
      language: python
      fail_on_modify: false
      types: ['python']
      additional_dependencies:
        - isort==5.10.1

Made because

Author of pre-commit library doesn't want to add this feature to the library.
You can see:

pre-commit#747 (comment)
pre-commit#532

About

Pre-commit with fail on modify parameter

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages