Skip to main content

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)

Source distribution for pytest-black-ng 0.4.1
File Size Uploaded
pytest-black-ng-0.4.1.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-black-ng 0.4.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page