Skip to main content

A pytest plugin for checking of modified code using Darker

Project description

travis-badge license-badge pypi-badge downloads-badge black-badge changelog-badge

Requirements

There is a minimum requirement of Darker 1.1.0 later.

Installation

$ pip install pytest-darker

Usage

To run pytest with checks provided by Darker:

$ pytest --darker

The plugin will output a diff of suggested formatting changes from Black (if any exist). Changes will _not_ be applied automatically.

Customizing Black and isort behavior

Project-specific default options for Black and isort are read from the project’s pyproject.toml file in the repository root. isort also looks for a few other places for configuration.

For more details, see:

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 BSD license, pytest-darker is free and open source software.

Issues

If you encounter any problems, please file an issue in the pytest-darker issue tracker along with a detailed description.

GitHub stars trend

stargazers

Project details


Download files

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

Files for pytest-darker, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size pytest_darker-0.1.2-py3-none-any.whl (5.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pytest_darker-0.1.2.tar.gz (6.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page