oxsecurity / megalinter

🦙 MegaLinter analyzes 50 languages, 22 formats, 21 tooling formats, excessive copy-pastes, spelling mistakes and security issues in your repository sources with a GitHub Action, other CI tools or locally.
https://megalinter.io
GNU Affero General Public License v3.0
1.89k stars 228 forks source link

flake8 plugins and annotations #952

Closed elisim closed 2 years ago

elisim commented 2 years ago

Hi,

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

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

image

Thank you

nvuillam commented 2 years ago

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 commented 2 years ago

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