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.2.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for setuptools_black-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f577dfd49b6e911b0756f2eb10fd060e611c7eb6ae15ad1da8a564a8a6bfa52 |
|
MD5 | 4add3658de31333ae039514325fb95c3 |
|
BLAKE2b-256 | 80dff9805effcde67ecf43c804842295d1c2a77484cd5472c2c22de529cb1567 |