Closed rjalexa closed 7 months ago
I'm using Python 3.9.7 and interrogate 1.5.0 and I have observed similar behavior with respect to the exclude
argument:
$ interrogate quiet # Works properly
$ pre-commit run
interrogate..............................................................Failed
- hook id: interrogate
- exit code: 1
and the error is due to one of the files which are listed in exclude
.
Add pass_filenames: false
to your hook. See: https://github.com/econchick/interrogate/issues/60#issuecomment-735436566
Thank you!
Environment
interrogate
version(s) (interrogate --version
: version 1.5.0Description of the bug
pyproject.toml option ignore-init-module = true gets honoured when interrogate is launched from command line, but is NOT honoured when invoked from pre-commit
What you expected to happen
I would expect my init.py to be ignored when interrogate is invoked either way (command line or pre-commit)
How to reproduce (as minimally and precisely as possible)
.pre-commit-config.yaml contains the following:
pyproject.toml
Run from pre-commit:
Anthing else we need to know?