econchick / econchick/interrogate

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

Open
#142 1 comment 0 reactions 1 assignee Claimed by @econchick View on GitHub
bug needs followup
Dominant language
Python
Stars
676
Forks
55
PR merge metrics
No merged PRs in 30d

Description

### 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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.