econchick / interrogate

Explain yourself! Interrogate a codebase for docstring coverage.
https://interrogate.readthedocs.io
MIT License
575 stars 44 forks source link

Error: Option '--verbose' does not take a value. #142

Open bluppfisk opened 1 year ago

bluppfisk commented 1 year ago

Environment

Description of the bug

Having set --verbose=2 as one of the options in my .pre-commit-config.yaml (full config below), and having run pre-commit during a git commit action, I get the error "Error: Option '--verbose' does not take a value"

What you expected to happen

The extra-verbose output from interrogate during pre-commit, as with the -vv flag (which does work)

How to reproduce (as minimally and precisely as possible)

Use the config below in your pre-commit-config.yaml in any repo, run pre-commit install, commit something and behold.

Anthing else we need to know?

  1. -vv works!
  2. --verbose also works, but is not verbose enough
  3. pre-commit-config.yaml:
# Interrogate for docstring coverage
- repo: https://github.com/econchick/interrogate
  rev: 1.5.0
  hooks:
    - id: interrogate
      name: check docstring coverage of functions
      args:
        - --ignore-regex=^Base.*$
        - --ignore-regex=^.*Exception$
        - --ignore-regex=^.*Error$
        - --ignore-init-module
        - --ignore-init-method
        - --ignore-module
        - --ignore-magic
        - --ignore-property-decorators
        - --fail-under=90
        - --verbose=2
econchick commented 5 months ago

hey @bluppfisk - sorry for the silence! have you tried adding a second --verbose argument?