black command for setuptools
Project description
Custom setuptools command for black formatting tool (see https://github.com/ambv/black).
This package enforces code formatting validation using black at build time, by overriding the build
distutils command.
Build will fail if there's any formatting error.
In your setup.py:
...
setuptools.setup(
...
setup_requires=["setuptools-black>=0.1.3"],
...
)
It also adds the format
command to setuptools, which uses black to reformat code:
> python setup.py format
running format
All done! ✨ 🍰 ✨
5 files left unchanged
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
setuptools-black-0.1.3.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for setuptools_black-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4deaf4efb275094f65e92bfb38a05115475cf6914934285bafca51ac5e632cb1 |
|
MD5 | ca8070853c80e3eacb00e3c5811a9f15 |
|
BLAKE2b-256 | b7f6272e75c6b4052f1da1e1ac4c8db6f9908bea717c31625ce9381dbdb54eae |