From 64c7a6367ae6c934f61e753ab8fe8e02094f0983 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Wed, 22 Jun 2016 17:11:08 +0100 Subject: [PATCH] Document isort and 'make lint' in Python coding guidelines --- docs/contributing/python_guidelines.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/contributing/python_guidelines.rst b/docs/contributing/python_guidelines.rst index 5fe72872c..95509cc9a 100644 --- a/docs/contributing/python_guidelines.rst +++ b/docs/contributing/python_guidelines.rst @@ -4,7 +4,7 @@ Python coding guidelines PEP8 ~~~~ -We ask that all Python contributions adhere to the `PEP8 `_ style guide, apart from the restriction on line length (E501). The `pep8 tool `_ makes it easy to check your code, e.g. ``pep8 --ignore=E501 your_file.py``. +We ask that all Python contributions adhere to the `PEP8 `_ style guide, apart from the restriction on line length (E501). In addition, import lines should be sorted according to `isort `_ rules. If you have installed Wagtail's testing dependencies (``pip install -e .[testing]``), you can check your code by running ``make lint``. Python 2 and 3 compatibility