Skip to content

Providing --install-deps to pre-commit hooks #499

@m-aciek

Description

@m-aciek

Describe the bug
I am trying to provide the --install-deps flag to my pre-commit hook config, and my attempt fails.

To Reproduce
Local .pre-commit-config.yaml fragment:

  - repo: https://github.com/tweag/FawltyDeps
    rev: v0.20.0
    hooks:
      - id: check-undeclared
        args: ["--install-deps"]
      - id: check-unused
        args: ["--install-deps"]

Than running to check all files.
% pre-commit run check-undeclared --all

Expected behavior
I'd expect this to execute check-undeclared hook on all my files with the specified flag.

Instead I'm getting

fawltydeps: error: Parsing given dependencies path isn't supported: generate.py

several times.

Environment

  • OS name + version: MacOS 15.6.1
  • Version of the code: 0.20.0

Additional context
https://pre-commit.com/#passing-arguments-to-hooks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions