black command for setuptools
Project description
Custom setuptools command for black formatting tool (see https://github.com/ambv/black).
This package adds the format
command to setuptools, which uses black to reformat code:
> python setup.py format
running format
All done! ✨ 🍰 ✨
5 files left unchanged
You may also use customize the build_py
command to enforce format validation at build time.
In your setup.py:
import setuptools_black
...
setuptools.setup(
...
setup_requires=["setuptools-black"],
...
cmdclass={
"build_py": setuptools_black.BuildCommand,
},
...
)
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.0.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for setuptools_black-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f4e6ecedc6f02f4cb7d3ff45061907d453d4ba19255ed7055263679b0bde520 |
|
MD5 | 3f0caa5d30f81684d3d0d6e8facfddbb |
|
BLAKE2b-256 | 569133e17bbcaaf732529eca7d8d347e20411c92c5aa22313d6db6addd25e816 |