A pytest plugin for checking of modified code using Darker
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pytest_darker-0.1.2.tar.gz
.
File metadata
- Download URL: pytest_darker-0.1.2.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79d725b55e346bfb00304485184ba978723d99c4e475d73547074303255f7544 |
|
MD5 | 5f9edff11fe50d1d2fb4cf1373b10ba2 |
|
BLAKE2b-256 | 15d849e6643ce5ada9a70a7d158d4013f23b954775b53c9c893da8139359429c |
File details
Details for the file pytest_darker-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: pytest_darker-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec7bad719510f0ac2d3d9aeb698cf6d5fb88b76e43b0bc1ee0cfb125332abcfd |
|
MD5 | e527f079da41ae547cb8a47cc6de5788 |
|
BLAKE2b-256 | 33b1927b104de454d4bb671f1b55873ae0fc0e0b6ce5382e2250a746541ab0df |