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

pre-commit hook is not working #25

Open
Popkornium18 opened this issue Apr 16, 2024 · 1 comment
Open

pre-commit hook is not working #25

Popkornium18 opened this issue Apr 16, 2024 · 1 comment

Comments

@Popkornium18
Copy link

Popkornium18 commented Apr 16, 2024

The plugin works fine

$ poetry audit
# poetry audit report

Loading...
Scanning 55 packages...

  • black  installed 24.2.0  affected <24.3.0  CVE CVE-2024-21503

1 vulnerabilities found in 1 packages

However, the pre-commit hook does not:

$ pre-commit run poetry-audit --all-files
poetry-audit.............................................................Failed
- hook id: poetry-audit
- exit code: 1

No arguments expected for "audit" command, got "src/somepackage/run_web_server.py"

No arguments expected for "audit" command, got "src/somepackage/py.typed"

No arguments expected for "audit" command, got "src/somepackage/models.py"

No arguments expected for "audit" command, got "tests/test_somepackage.py"

No arguments expected for "audit" command, got "somepackage.service"

No arguments expected for "audit" command, got "src/somepackage/crud/binary.py"

No arguments expected for "audit" command, got "src/somepackage/routers/__init__.py"

I have added the hook like this:

repos:
  - repo: https://github.com/opeco17/poetry-audit-plugin
    rev: d110f48c48c2c4af08fab18b7c0c66d5480a6855
    hooks:
      - id: poetry-audit
@CribberSix
Copy link

It would be great if we could get this package working as a pre-commit hook! <3

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

No branches or pull requests

2 participants