Skip to content
Snippets Groups Projects
Commit bd2ea275 authored by Houzefa Abbasbhay's avatar Houzefa Abbasbhay :slight_smile:
Browse files

Docs about formatting the code with ``black``

parent 0a6e8e45
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,13 @@
# tox only pycodestyle & py27 because python3 requires a genshi trunk from svn...
- tox -e pycodestyle,py27
black:
image: houzefaabba/python3-black
pull: true
commands:
# Ensure our code is black-valid <https://pypi.org/project/black/>.
- black --check .
notify:
image: plugins/slack
channel: dev
......
......@@ -18,4 +18,9 @@
Code style
----------
TODO
We let ``black`` <https://pypi.org/project/black/> take care of everything
here.
Follow its install guide to get it (requires Python 3.6).
Alternatively, the <https://hub.docker.com/r/houzefaabba/python3-black/> Docker
image contains Python 3.6 with ``black`` installed inside.
# See <https://pypi.org/project/black/>.
# black defaults to "line-length = 88"; we prefer "line-length = 79" for now to
# please our various tools / IDEs / linters.
[tool.black]
line-length = 79
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment