I don't want to check .rst or .txt files, only .bar files.
Given:
$ ls
foo.bar foo.baz foo.rst foo.txt
running doc8 gives:
$ doc8 -v -e .bar .
Scanning...
Selecting './foo.bar'
Selecting './foo.txt'
Selecting './foo.rst'
---8<---
The same behavior occurs when using a config file. In my case, pyproject.toml. This was suprising as one would expect that setting an option would override that option's defaults.
Obviously one could work around this using shell expansion (doc8 **/*.rst), and thats ok for command line use. But, my ultimate goal is to control doc8 via config file like I do with other tooling, and doing:
[tool.doc8]
ignore-path = [
"*.txt",
"*/*.txt",
"*/*/*.txt",
"*/*/*/*.txt",
"*/*/*/*/*.txt",
"*/*/*/*/*/*.txt",
]
is just inelegant.
I don't want to check
.rstor.txtfiles, only.barfiles.Given:
running
doc8gives:The same behavior occurs when using a config file. In my case,
pyproject.toml. This was suprising as one would expect that setting an option would override that option's defaults.Obviously one could work around this using shell expansion (
doc8 **/*.rst), and thats ok for command line use. But, my ultimate goal is to controldoc8via config file like I do with other tooling, and doing:is just inelegant.