A pytest plugin to enable format checking with black
A pytest plugin to enable format checking with black.
$ pip install pytest-black
To run pytest with formatting checks provided by black:
$ pytest --black
The plugin will output a diff of suggested formatting changes (if any exist). Changes will not be applied automatically.
You can override default black configuration options by placing a
pyproject.toml file in your project directory. See example configuration here.
To run the tests against a selection of Python interpreters:
To run against a specific interpreter (e.g. Python 3.6):
$ tox -e py36
tox.ini file in the root of this repository is used to configure the test environment.
Distributed under the terms of the
pytest-black is free and open source software
If you encounter any problems, please file an issue along with a detailed description.
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pytest-black-0.3.8.tar.gz (6.3 kB)||File type Source||Python version None||Upload date||Hashes View hashes|