There is a minimum requirement of Darker 1.1.0 later.
$ pip install pytest-darker
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.
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:
- Black documentation about pyproject.toml
- Black example configuration
- isort documentation about config files
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.
Distributed under the terms of the BSD
license,
pytest-darker is free and open source software.
If you encounter any problems, please file an issue in the pytest-darker issue tracker along with a detailed description.