mtshiba / pylyzer

A fast, feature-rich static code analyzer & language server for Python
http://mtshiba.github.io/pylyzer/
MIT License
2.52k stars 33 forks source link

Question: How to run pylyzer in my CI #76

Open fbrodrigorezino opened 9 months ago

fbrodrigorezino commented 9 months ago

Hello! 👋

We are looking into adopting Pylyzer as the default tool in the company, but I'm missing one part in the docs. How can I rin Pylyzer analyze all files in my project? like mypy .

Thank you!

choucavalier commented 5 days ago

See https://github.com/mtshiba/pylyzer/issues/57

Maybe @mtshiba does not have the time to set this up.

@fbrodrigorezino Could you open a PR to set this up with a .pre-commit-hook.yaml config file? (see https://pre-commit.com/#new-hooks)

fbrodrigorezino commented 5 days ago

I don't use pre-commit-hook, but as of my knowledge, it runs before you commit via git right? How can that help in CI? We just need a cli cmd to invoke it. Then you can use if you want in pre-commit, ci/cd etc.