Skip to content

black

black is the uncompromising Python code formatter. NOC DevTeem uses black to ensure consistent code Python code formatting and PEP8 compliance.

black is mandatory check running on every git push to the repo. Every error found considered fatal and CI pipeline will be stopped immediately until the code will be reformatted properly.

Please refer How to Setup black Formatter in PyCharm to integrate black with PyCharm.

Docker Container

NOC DevTeam maintains docker container registry.getnoc.com/infrastructure/noc-py-lint:master, containing actual version of prettier tool.