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

flake8 plugins and annotations #952

Closed
elisim opened this issue Nov 8, 2021 · 2 comments
Closed

flake8 plugins and annotations #952

elisim opened this issue Nov 8, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@elisim
Copy link

elisim commented Nov 8, 2021

Hi,

Is it possible to add flake8 plugins? Like in julianwachholz/flake8-action#22.
In addition, does megalinter can provide annotations?

See also:
https://github.com/julianwachholz/flake8-action-test/pull/1/files

image

Thank you

@elisim elisim added the enhancement New feature or request label Nov 8, 2021
@nvuillam
Copy link
Member

nvuillam commented Nov 8, 2021

Name the flake8 plugins you'd like and we probably can include them in core MegaLinter if they are widely used :)

Meanwhile, it is also possible to use PRE_COMMANDS to install missing plugins

Example to add in your .megalinter.yml local config file

PRE_COMMANDS:
  - command: pip install pep8-naming==0.12.1 flake8-comprehensions==3.6.1
    cwd: "root"    

About annotations, sorry we do not provide them yet, but someday probably if we succeed to add a ReviewDog reporter...

@elisim
Copy link
Author

elisim commented Nov 9, 2021

Thank you.

Name the flake8 plugins you'd like
I use pep8-naming and flake8-comprehensions, but I think it will be helpful for others to add docs about the option of adding flake8 plugins.

Closing this issue, thanks again

@elisim elisim closed this as completed Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants