-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
doc8 does not load ignore-path from pyproject.toml #75
Comments
I found that the following does work in
|
A patch would be welcomed. |
See #85 |
Instead of using the implementation of `from_ini()` as inspiration, simply loop over the items in the `[tool.doc8]` dictionary and replace hyphens in names with underscores. There is a special case for the `ignore-path-errors` argument because the elements of that list each need to be parsed. I removed the extra handling for the `extensions` argument which stripped whitespace from each element in the list. On reflection, I realized that the stripping was necessary for INI files due to the way the `ConfigParser` works and not because it's necessary to guard against extensions with whitespace.
This issue is now resolved. |
I tried used two versions of what it was supposed to be config in toml file and I observed that running
doc8
failed to use the ignore. On the other hand putting configuration insidesetup.cfg
worked.case 1
case 2
None of these works and based on docs, at least should have worked.
The text was updated successfully, but these errors were encountered: