From 9f107a03276857c668fe3e090752d3d22a4195e5 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sun, 22 Feb 2015 08:39:33 -0800 Subject: [PATCH] v0.4.0 --- CHANGELOG | 12 ++++++++++++ README.md | 2 +- hooks.yaml | 12 ++++++------ setup.py | 2 +- 4 files changed, 20 insertions(+), 8 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index d03b1e2..9685f6c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,15 @@ +0.4.0 +===== +- Fix trailing-whitespace on OS X +- Add check-added-large-files hook +- Add check-docstring-first hook +- Add requirements-txt-fixer hook +- Add check-case-conflict hook +- Use yaml's CLoader when available in check-yaml for more speed +- Add check-xml hook +- Fix end-of-file-fixer for windows +- Add double-quote-string-fixer hook + 0.3.0 ===== - Add autopep8-wrapper hook diff --git a/README.md b/README.md index 3eb8997..438921c 100644 --- a/README.md +++ b/README.md @@ -31,12 +31,12 @@ Add this to your `.pre-commit-config.yaml` - `check-xml` - Attempts to load all xml files to verify syntax. - `check-yaml` - Attempts to load all yaml files to verify syntax. - `debug-statements` - Check for pdb / ipdb / pudb statements in code. +- `double-quote-string-fixer` - This hook replaces double quoted strings with single quoted strings - `end-of-file-fixer` - Makes sure files end in a newline and only a newline. - `flake8` - Run flake8 on your python files - `name-tests-test` - Assert that files in tests/ end in _test.py - `pyflakes` - Run pyflakes on your python files - `requirements-txt-fixer` - Sorts entries in requirements.txt -- `double-quote-string-fixer` - This hook replaces double quoted strings with single quoted strings - `trailing-whitespace` - Trims trailing whitespace. ### As a standalone package diff --git a/hooks.yaml b/hooks.yaml index 9e32ce7..9cb8309 100644 --- a/hooks.yaml +++ b/hooks.yaml @@ -49,6 +49,12 @@ entry: debug-statement-hook language: python files: \.py$ +- id: double-quote-string-fixer + name: Fix double quoted strings + description: This hook replaces double quoted strings with single quoted strings + entry: double-quote-string-fixer + language: python + files: \.py$ - id: end-of-file-fixer name: Fix End of Files description: Ensures that a file is either empty, or ends with one newline. @@ -79,12 +85,6 @@ entry: requirements-txt-fixer language: python files: requirements.*\.txt$ -- id: double-quote-string-fixer - name: Fix double quoted strings - description: This hook replaces double quoted strings with single quoted strings - entry: double-quote-string-fixer - language: python - files: \.py$ - id: trailing-whitespace name: Trim Trailing Whitespace description: This hook trims trailing whitespace. diff --git a/setup.py b/setup.py index 1a9cf2b..4fb9139 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.3.0', + version='0.4.0', author='Anthony Sottile', author_email='asottile@umich.edu',