diff --git a/CHANGELOG.md b/CHANGELOG.md index eccc3aa7..29a8d24c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +0.6.0 +===== +- Filter hooks by stage (commit, push). + 0.5.5 ===== - Change permissions a few files diff --git a/pre_commit/commands/install_uninstall.py b/pre_commit/commands/install_uninstall.py index d4c2ad51..18515ce8 100644 --- a/pre_commit/commands/install_uninstall.py +++ b/pre_commit/commands/install_uninstall.py @@ -20,7 +20,7 @@ PREVIOUS_IDENTIFYING_HASHES = ( '4d9958c90bc262f47553e2c073f14cfe', 'd8ee923c46731b42cd95cc869add4062', '49fd668cb42069aa1b6048464be5d395', - '79f09a650522a87b0da915d0d983b2de' + '79f09a650522a87b0da915d0d983b2de', ) diff --git a/pre_commit/main.py b/pre_commit/main.py index cd6af081..ce16acde 100644 --- a/pre_commit/main.py +++ b/pre_commit/main.py @@ -102,7 +102,7 @@ def main(argv=None): ) run_parser.add_argument( '--hook-stage', choices=('commit', 'push'), default='commit', - help='The stage during which the hook is fired e.g. commit or push' + help='The stage during which the hook is fired e.g. commit or push', ) run_mutex_group = run_parser.add_mutually_exclusive_group(required=False) run_mutex_group.add_argument( diff --git a/setup.py b/setup.py index 0f16b551..cc9d472a 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( 'hooks.' ), url='https://github.com/pre-commit/pre-commit', - version='0.5.5', + version='0.6.0', author='Anthony Sottile', author_email='asottile@umich.edu', diff --git a/tests/commands/run_test.py b/tests/commands/run_test.py index 235cc0f9..548df742 100644 --- a/tests/commands/run_test.py +++ b/tests/commands/run_test.py @@ -493,7 +493,7 @@ def test_local_hook_fails( options={}, expected_outputs=[b''], expected_ret=1, - stage=False + stage=False, )