Bug 1599749 - Reference black&flake8 from the Python coding style page r=ahal
authorSylvestre Ledru <sledru@mozilla.com>
Fri, 29 Nov 2019 18:43:40 +0000
changeset 504742 aecc4ed7655fcd3370882ee95dffe06c0faac167
parent 504741 b4b10ae558b9ca109218935d2bf48844cbfd7857
child 504743 b428a65fc9165bee42095e47e554b225057dd3fe
push id101926
push usersledru@mozilla.com
push dateFri, 29 Nov 2019 18:44:13 +0000
treeherderautoland@aecc4ed7655f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1599749
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1599749 - Reference black&flake8 from the Python coding style page r=ahal Depends on D54934 Differential Revision: https://phabricator.services.mozilla.com/D54935
tools/lint/docs/coding-style/coding_style_python.rst
--- a/tools/lint/docs/coding-style/coding_style_python.rst
+++ b/tools/lint/docs/coding-style/coding_style_python.rst
@@ -1,19 +1,31 @@
 ===================
 Python Coding style
 ===================
 
+Coding style
+~~~~~~~~~~~~
+
+`black <https://github.com/psf/black/>`_ is the tool used to reformat the Python code.
+
+Linting
+~~~~~~~
+
+The Python linting is done by `flake8 <https://gitlab.com/pycqa/flake8>`_.
+flake8 is executed by mozlint both at review phase and in the CI.
+See the :ref:`flake8` documentation for more information.
+
+
 Indentation
 ~~~~~~~~~~~
 
 Four spaces in Python code.
 
 
-
 Makefile/moz.build practices
 ----------------------------
 
 -  Changes to makefile and moz.build variables do not require
    build-config peer review. Any other build system changes, such as
    adding new scripts or rules, require review from the build-config
    team.
 -  Suffix long ``if``/``endif`` conditionals with #{ & #}, so editors