diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..b2f61dd5 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,16 @@ +- repo: git://github.com/pre-commit/pre-commit-hooks + sha: 97b88d9610bcc03982ddac33caba98bb2b751f5f + hooks: + - id: trailing-whitespace + - id: flake8 + args: + - --exclude=*/*migrations/*, testproject/testproject/settings/* + - id: check-added-large-files + - id: debug-statements + - id: end-of-file-fixer +- repo: git://github.com/FalconSocial/pre-commit-python-sorter + sha: d044ff27300a6dc8b1a56cd22552e3a810dc6f49 + hooks: + - id: python-import-sorter + args: + - --silent-overwrite diff --git a/README.rst b/README.rst index 30ad9cb8..2d36ff5f 100644 --- a/README.rst +++ b/README.rst @@ -122,6 +122,11 @@ Development / demo project In your Git fork, run ``pip install -r requirements.txt`` to install the requirements. +Install pre-commit hooks to verify your commits:: + + pip install pre-commit + pre-commit install + The folder **test-project/** contains a pre-configured django project and an SQlite database. Login for django admin is *admin:admin*::