pygradle icon indicating copy to clipboard operation
pygradle copied to clipboard

flake8 plugins - how to enable them?

Open Nickolaim opened this issue 6 years ago • 2 comments

How to install flake8 plugins so they are executed during gradlew flake8?

flake8 that is used for this command is in build/infra-ven and I could not find a way to have plugins land into this virtual environment.

Please suggest.

Nickolaim avatar Apr 01 '19 22:04 Nickolaim

In general flake8 and Sphinx plugins should be declared as a build configuration dependency (as opposed to python runtime dependency or test dependency). Now, after the move of flake8 task you may need to declare flake8 configuration dependency, or perhaps both build and flake8.

We've noticed this regression and since the reason it was made does not apply any more, we're planning on reverting that change once we finish some more urgent work and features we're busy with now. When we restore the old behavior, you should be able to use just build configuration dependency as you did before.

I hope the suggestion above helps in the meantime.

zvezdan avatar Apr 01 '19 23:04 zvezdan

Thank you, it helped!

Feel free to keep this issue as a reminder to revert the change. Or just close it.

Thanks again.

Nickolaim avatar Apr 02 '19 14:04 Nickolaim