| commit | 9bfa01da818f29528cadf226b2633eab9a5d76b8 | [log] [tgz] |
|---|---|---|
| author | Anthony Sottile <asottile@umich.edu> | Wed Dec 31 12:34:28 2014 -0800 |
| committer | Anthony Sottile <asottile@umich.edu> | Wed Dec 31 12:34:28 2014 -0800 |
| tree | 30fb7ef6e24bb9e850503667a47a17e12944a3c7 | |
| parent | 2bd608119f0f1d0783117e1d8a42210d84ca81f3 [diff] | |
| parent | a42a26bef3110ed9ef6057a25d4746641ba00717 [diff] |
Merge pull request #16 from pre-commit/large_added_files Add check-added-large-files hook
Some out-of-the-box hooks for pre-commit.
See also: https://github.com/pre-commit/pre-commit
Add this to your .pre-commit-config.yaml
- repo: git://github.com/pre-commit/pre-commit-hooks
sha: '' # Use the sha you want to point at
hooks:
- id: trailing-whitespace
# - id: ...
autopep8-wrapper - Runs autopep8 over python source. ' check-added-large-files - Prevent giant files from being committed.check-json - Attempts to load all json 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.end-of-file-fixer - Makes sure files end in a newline and only a newline.flake8 - Run flake8 on your python filesname-tests-test - Assert that files in tests/ end in _test.pypyflakes - Run pyflakes on your python filesrequirements-txt-fixer - Sorts entries in requirements.txttrailing-whitespace - Trims trailing whitespace.If you‘d like to use these hooks, they’re also available as a standalone package.
Simply pip install pre-commit-hooks