When using the -o, --output flag, interrogate doesn't create the parent(s) of the file if they don't already exist:
$interrogate -vv -o build/coverage/docstring_coverage.log dir/
<traceback>
FileNotFoundError: [Errno 2] No such file or directory: 'build/coverage/docstring_coverage.log'
What you expected to happen
I would expect that interrogate would create the parent directories that do not exist (e.g. in this case build/coverage/.
Environment
interrogate
version(s): 1.5.0Description of the bug
When using the
-o, --output
flag, interrogate doesn't create the parent(s) of the file if they don't already exist:What you expected to happen
I would expect that interrogate would create the parent directories that do not exist (e.g. in this case
build/coverage/
.