Skip to main content

A pytest plugin to enable format checking with black

Project description

pytest-black

Build Status

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.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-black-0.1.4.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file pytest-black-0.1.4.tar.gz.

File metadata

File hashes

Hashes for pytest-black-0.1.4.tar.gz
Algorithm Hash digest
SHA256 0bccecdacf2a6366019da0ee65a6cd20d2886155deddb49a950ef36d92a0643e
MD5 b443809618f2aff957621abde83709b2
BLAKE2b-256 a2f167061f55bcff0c868af1522b53666a54e2b1452f420f218e1644ad531bf6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page