This commit is contained in:
Konstantinos Koukopoulos 2016-04-21 09:47:45 +00:00
commit 61989e4fae
2 changed files with 7 additions and 0 deletions

View file

@ -47,6 +47,7 @@ Add this to your `.pre-commit-config.yaml`
- `end-of-file-fixer` - Makes sure files end in a newline and only a newline. - `end-of-file-fixer` - Makes sure files end in a newline and only a newline.
- `fix-encoding-pragma` - Add `# -*- coding: utf-8 -*-` to the top of python files - `fix-encoding-pragma` - Add `# -*- coding: utf-8 -*-` to the top of python files
- `flake8` - Run flake8 on your python files. - `flake8` - Run flake8 on your python files.
- `prospector` - Run prospector on your python files.
- `name-tests-test` - Assert that files in tests/ end in `_test.py`. - `name-tests-test` - Assert that files in tests/ end in `_test.py`.
- Use `args: ['--django']` to match `test*.py` instead. - Use `args: ['--django']` to match `test*.py` instead.
- `pyflakes` - Run pyflakes on your python files. - `pyflakes` - Run pyflakes on your python files.

View file

@ -129,6 +129,12 @@
entry: pyflakes entry: pyflakes
language: python language: python
files: \.py$ files: \.py$
- id: prospector
name: Prospector
description: This hook runs prospector.
entry: prospector
language: python
files: \.py$
- id: requirements-txt-fixer - id: requirements-txt-fixer
name: Fix requirements.txt name: Fix requirements.txt
description: Sorts entries in requirements.txt description: Sorts entries in requirements.txt