Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support installation on older Python versions #33

Closed
jaraco opened this issue May 16, 2019 · 1 comment
Closed

Support installation on older Python versions #33

jaraco opened this issue May 16, 2019 · 1 comment

Comments

@jaraco
Copy link
Contributor

jaraco commented May 16, 2019

In pytest-dev/pytest#5272, I encountered an issue with this plugin where it took at least two switches to enable/disable this plugin (one for declaring the plugin, another to enable it by command line), and getting both of those to work in a cross Python environment was not trivial.

I ended up creating a sister package, pytest-black-multipy, which one can declare as a dependency on Python 2.7+ and pass --black to pytest, and the tests will run on all Python versions, invoking black on those that support it.

Perhaps this project would consider adopting that functionality natively so that package maintainers could more readily adopt black/pytest-black for projects that still support older Pythons.

@paddycarey
Copy link

I'm not opposed to this. I think it could be useful until Py2 support finally runs out at the end of this year. If you want to submit a PR i'll review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants