From 44c02b85d63209648439a9d98adbf936cb667c77 Mon Sep 17 00:00:00 2001 From: Konstantinos Koukopoulos Date: Thu, 21 Apr 2016 12:33:11 +0300 Subject: [PATCH 1/2] enable prospector in hooks.yaml --- hooks.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hooks.yaml b/hooks.yaml index 08f01c5..79aa11c 100644 --- a/hooks.yaml +++ b/hooks.yaml @@ -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 From 81dd4a52e5136578657bbf2d89b210aa0630fc63 Mon Sep 17 00:00:00 2001 From: Konstantinos Koukopoulos Date: Thu, 21 Apr 2016 12:45:56 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 091a8a4..923f64b 100644 --- a/README.md +++ b/README.md @@ -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.