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

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

Open
bluppfisk opened this issue Feb 17, 2023 · 1 comment
Open

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

bluppfisk opened this issue Feb 17, 2023 · 1 comment
Assignees
Labels
bug Something isn't working needs followup Needs response from issue/PR filer

Comments

@bluppfisk
Copy link

bluppfisk commented Feb 17, 2023

Environment

  • interrogate version(s) (interrogate --version: 1.5.0
  • Operating System(s): Debian Bullseye
  • Python version(s): 3.9
  • Pre-commit version: 3.0.3

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
@bluppfisk bluppfisk added bug Something isn't working needs triage Issue needs triaging labels Feb 17, 2023
@econchick
Copy link
Owner

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

@econchick econchick added needs followup Needs response from issue/PR filer and removed needs triage Issue needs triaging labels Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs followup Needs response from issue/PR filer
Projects
None yet
Development

No branches or pull requests

2 participants