Skip to content

Makcxim/pre-commit-fail-on-modify

 
 

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

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 97.3%
  • R 2.1%
  • Shell 0.5%
  • Dockerfile 0.1%
  • Lua 0.0%
  • Ruby 0.0%