mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-31 10:36:54 +00:00
v0.4.0
This commit is contained in:
parent
c4c3c735fd
commit
9f107a0327
4 changed files with 20 additions and 8 deletions
12
CHANGELOG
12
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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
12
hooks.yaml
12
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.
|
||||
|
|
|
|||
2
setup.py
2
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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue