As laid out in #33, it's useful for projects to be able to require pytest-black, and to enable it with --black, on older Pythons even though it's known not to run there, because that enables projects to adopt pytest-black for the versions that do support it and not have to worry about separate dependencies and invocation strategies depending on the environment.
This PR allows the project to be installed on Python 2.7+ and for Pythons where black is installed (currently 3.6+), allows it to run. It still collects relevant files and skips them when black is unavailable.
As laid out in #33, it's useful for projects to be able to require
pytest-black
, and to enable it with--black
, on older Pythons even though it's known not to run there, because that enables projects to adopt pytest-black for the versions that do support it and not have to worry about separate dependencies and invocation strategies depending on the environment.This PR allows the project to be installed on Python 2.7+ and for Pythons where black is installed (currently 3.6+), allows it to run. It still collects relevant files and skips them when black is unavailable.