opeco17 / poetry-audit-plugin

Poetry plugin for checking vulnerabilities in dependencies 🚀
MIT License
20 stars 7 forks source link

Add "pre-commit" support #12

Closed AIGeneratedUsername closed 3 months ago

AIGeneratedUsername commented 1 year ago

What

I never did this by myself, but I believe this is simple.

How to: https://pre-commit.com/#new-hooks

Here is Flake8 example: https://github.com/PyCQA/flake8/blob/main/.pre-commit-hooks.yaml

One more example: https://github.com/koyeung/ko-poetry-audit-plugin#installation

Alternatives

Do nothing.
In such case, I will need to setup a mirror of your repository similar to a Mypy mirror https://github.com/pre-commit/mirrors-mypy Or just use another tool which supports pre-commit.

opeco17 commented 3 months ago

Done in https://github.com/opeco17/poetry-audit-plugin/pull/24