pytest-black-ng
A pytest plugin to enable format checking with black.
This is a fork of the original pytest-black plugin by ShopKeep Inc to provide an up-to-date version of this plugin.
Requirements
There is a minimum requirement of black 22.1.0 or later.
Installation
$ pip install pytest-black-ng
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, simply run:
$ pytest
$ flake8
CI takes care of running this against a selecting of Python versions.
License
Distributed under the terms of the MIT license, pytest-black-ng is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
Metadata
Release files for pytest-black-ng 0.4.1
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-ng-0.4.1.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_black_ng-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / pytest-black-ng-0.4.1.tar.gz
| Download URL | pytest-black-ng-0.4.1.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20c1d671b2535e5cf6f8fe03d175887a04f549cb2455264bbb81150c941bd701
|
|
BLAKE2b-256 checksum How to use checksums |
a59125b9d8a1ae32f481f3584338b31be6599940bc1b7ff0898b3c1c6271e509
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Release files / pytest_black_ng-0.4.1-py3-none-any.whl
| Download URL | pytest_black_ng-0.4.1-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d4ef8945ff410e3cb915e82420a67256aaca4e9b60cc68c7da1cd3cc85c27315
|
|
BLAKE2b-256 checksum How to use checksums |
529e8487c641eda9b272d11fdf1cfc7f27c8496b4c3dbe97ad8349fc68c7fbfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|