From 6c464e27020b40e0fbcf9ce0ad217b927b1f79eb Mon Sep 17 00:00:00 2001 From: "Evan J. Felix" Date: Thu, 19 Jan 2017 14:56:55 -0800 Subject: [PATCH] add no commit code and config --- hooks.yaml | 6 ++++++ setup.py | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/hooks.yaml b/hooks.yaml index 11a414c..9f51926 100644 --- a/hooks.yaml +++ b/hooks.yaml @@ -141,3 +141,9 @@ entry: trailing-whitespace-fixer language: python files: \.(asciidoc|adoc|coffee|cpp|css|c|ejs|erb|groovy|h|haml|hh|hpp|hxx|html|in|j2|jade|json|js|less|markdown|md|ml|mli|pp|py|rb|rs|R|scala|scss|sh|slim|tex|tmpl|ts|txt|yaml|yml)$ +- id: no-commit-to-branch + name: Dont commit to branch + entry: no-commit-to-branch + language: python + files: .* + always_run: true diff --git a/setup.py b/setup.py index f92f821..1f9fb80 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name='pre_commit_hooks', description='Some out-of-the-box hooks for pre-commit.', url='https://github.com/pre-commit/pre-commit-hooks', - version='0.6.0', + version='0.6.0a', author='Anthony Sottile', author_email='asottile@umich.edu', @@ -56,6 +56,7 @@ setup( 'pretty-format-json = pre_commit_hooks.pretty_format_json:pretty_format_json', 'requirements-txt-fixer = pre_commit_hooks.requirements_txt_fixer:fix_requirements_txt', 'trailing-whitespace-fixer = pre_commit_hooks.trailing_whitespace_fixer:fix_trailing_whitespace', + 'no-commit-to-branch = pre_commit_hooks.no_commit_to_branch:main', ], }, )