Add instructions on how to run black in the contributing guide

This commit is contained in:
Alexis M 2019-10-14 19:59:00 +02:00 committed by Alexis Metaireau
parent 1730560d20
commit 94e83306c3

View file

@ -97,7 +97,16 @@ a pull request as it will help us to maintain the code clean and running.
To do so::
$ make test
make test
We are using the `black <https://black.readthedocs.io/en/stable/>`_ formatter
for all the python files in this project. Be sure to run it locally on your
files. To do so, just run::
black ihatemoney
You can also integrate it with your dev environment (as a *format-on-save*
hook, for instance).
As a designer / Front-end developer
-----------------------------------