mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 03:26:53 +00:00
Merge 81dd4a52e5 into 17478a0a50
This commit is contained in:
commit
61989e4fae
2 changed files with 7 additions and 0 deletions
|
|
@ -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.
|
||||
- `fix-encoding-pragma` - Add `# -*- coding: utf-8 -*-` to the top of 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`.
|
||||
- Use `args: ['--django']` to match `test*.py` instead.
|
||||
- `pyflakes` - Run pyflakes on your python files.
|
||||
|
|
|
|||
|
|
@ -129,6 +129,12 @@
|
|||
entry: pyflakes
|
||||
language: python
|
||||
files: \.py$
|
||||
- id: prospector
|
||||
name: Prospector
|
||||
description: This hook runs prospector.
|
||||
entry: prospector
|
||||
language: python
|
||||
files: \.py$
|
||||
- id: requirements-txt-fixer
|
||||
name: Fix requirements.txt
|
||||
description: Sorts entries in requirements.txt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue