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_py
setup command.
Build will fail if there's any formatting error.
In your setup.py:
...
setuptools.setup(
...
setup_requires=["setuptools-black"],
...
)
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.1.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for setuptools_black-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c81c0727636badcc61046fd901bdb17d7d629b0f9accba675dd6a6d791607a90 |
|
MD5 | 44426db77bf736b1f37ea013e0850e30 |
|
BLAKE2b-256 | a394e642bbf1c22be6ecf92f3d8e79bbe0b2a59a28958fd6720c23f66a004277 |