diff --git a/README.rst b/README.rst index 2a6577135c..9bbc8f432f 100644 --- a/README.rst +++ b/README.rst @@ -63,12 +63,11 @@ Edit top level requirements in the file `requirements/base.in `_ into `.git/hooks/pre-commit`, it ensures staged python flake8 are in acceptable code style and conventions. +Install the pre-commit hooks by running: .. code-block:: sh - cp pre-commit.sh .git/hooks/pre-commit - chmod +x .git/hooks/pre-commit + pre-commit install **Security Acknowledgments** diff --git a/pre-commit.sh b/pre-commit.sh deleted file mode 100755 index 6d403bcc35..0000000000 --- a/pre-commit.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -# -# flake8 check -exec git diff --staged --name-only | grep -E '\.py$' | xargs flake8 --exclude=migrations -