semvec/pypi-packages huggingface dataset:
setuptools-black 0.1.5
black command for setuptools
License: MIT
Keywords: black setuptools plugin

[![Build Status](https://travis-ci.com/agrenott/setuptools-black.svg?branch=master)](https://travis-ci.com/agrenott/setuptools-black) [![Coverage Status](https://coveralls.io/repos/github/agrenott/setuptools-black/badge.svg?branch=master)](https://coveralls.io/github/agrenott/setuptools-black?branch=master)

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:

```bash
> python setup.py format
running format
All done! ✨ �� ✨
5 files left unchanged
```


You may also use customize the `build` command to enforce format validation at build time.
Build will fail if there's any formatting error.

In your setup.py:
```python
import setuptools_black
...
setuptools.setup(
...
    cmdclass={
        "build": setuptools_black.BuildCommand,
    },
...
)
```

**Note**

You'll have to install setuptools-black first, as setup_requires can't be used to install a package which must be imported by setup.py itself...