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

Add plugins input #154

Closed
peterbandi opened this issue May 11, 2022 · 6 comments · Fixed by #162
Closed

Add plugins input #154

peterbandi opened this issue May 11, 2022 · 6 comments · Fixed by #162

Comments

@peterbandi
Copy link

Please add an input to specify a list of additional plugins (with versions) to install with pip for Flake8. For example plugins: flake8-bugbear==22.1.11 as input would install the flake8-bugbear PyPI package version 22.1.11.

@chrissimpkins
Copy link
Contributor

Only need support for the pip install of the plugin package from PyPI?

@chrissimpkins
Copy link
Contributor

Implemented.

Mind giving the flake8-plugins branch a try in your GH Action configuration?

You should be able to configure it like this:

- name: flake8 Lint
  uses: py-actions/flake8@flake8-plugins
  with:
    plugins: "flake8-bugbear==22.1.11"

If you need more than one plugin, use a space delimiter between packages. Let me know if this works for you.

@chrissimpkins
Copy link
Contributor

I confirmed that this works with one and multiple plugins, and with fixed versions and floating versions based on current PyPI release.

I'll merge and release it. Thanks for the suggestion! Hope that it helps.

@chrissimpkins
Copy link
Contributor

Added in v2.2.0

https://github.com/marketplace/actions/python-flake8-lint?version=v2.2.0

You should receive the update automatically if you use py-actions/flake8@v2.

@peterbandi
Copy link
Author

Sorry for the super late reply. It works like a charm. Thanks a lot for the new feature! :)

@chrissimpkins
Copy link
Contributor

Great to hear that! And no worries at all. Thank you very much for the request!

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

Successfully merging a pull request may close this issue.

2 participants