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.

Source Distribution

pytest_darker-0.1.3.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

pytest_darker-0.1.3-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file pytest_darker-0.1.3.tar.gz.

File metadata

  • Download URL: pytest_darker-0.1.3.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for pytest_darker-0.1.3.tar.gz
Algorithm Hash digest
SHA256 91f1219f69b3b61163614c3caa5fe121d6ead491ff5a01d5bd824616e3bc417b
MD5 bb0bae988ecd8a200e770f69275c429e
BLAKE2b-256 a339311881947e88b24e2e7f6ee7288a558f2593c29e904def42fe09aa39e6f0

See more details on using hashes here.

File details

Details for the file pytest_darker-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_darker-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d5f24b1bd92227791ecd1688d9a1741902c471771723800a96bb8a392b6383ef
MD5 7254c26b255e46dfadeb51a0d391fa5e
BLAKE2b-256 93d6f7cfcc205aa349b121840a151e96512079c7ae1452adcf95f70d898da7ab

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