pytest-black
A pytest plugin to enable format checking with black.
Requirements
Installation
$ pip install pytest-black
Usage
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.
Configuration
You can override default black configuration options by placing a pyproject.toml file in your project directory. See example configuration here.
Testing
To run the tests against a selection of Python interpreters:
$ tox
To run against a specific interpreter (e.g. Python 3.6):
$ tox -e py36
The tox.ini file in the root of this repository is used to configure the test environment.
License
Distributed under the terms of the MIT license, pytest-black is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
Release files for pytest-black 0.3.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest-black-0.3.8.tar.gz | 6.3 kB | Details |
Release files / pytest-black-0.3.8.tar.gz
| Download URL | pytest-black-0.3.8.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
01a9a7acc69e618ebf3f834932a4d7a81909f6911051d0871b0ed4de3cbe9712
|
|
BLAKE2b-256 checksum How to use checksums |
3de92f3605f3922c1650cd43433be704a58773ee9baeb78731cc896822c2cc57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/2.7.15
|