Metadata-Version: 2.1
Name: setuptools-black
Version: 0.1.5
Summary: black command for setuptools
Home-page: https://github.com/agrenott/setuptools-black
Author: Aurelien Grenotton
Author-email: agrenott@gmail.com
License: MIT
Keywords: black setuptools plugin
Platform: UNKNOWN
Classifier: Framework :: Setuptools Plugin
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
Requires-Dist: black (>=18.9b0)

[![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...

