-
Notifications
You must be signed in to change notification settings - Fork 188
Fix error table RST, max short code now over 69 chars #396
Conversation
If adding a dependency on https://pypi.org/project/restructuredtext-lint/ was acceptable, I could add a test for this? |
There are different requirements files for testing and documentation from the package itself, so I would guess that adding a dependency to one of those would not be a problem: https://github.com/PyCQA/pydocstyle/tree/master/requirements |
Adding this to the tox
Installing restructuredtext-lint just for a couple of files seems rather heavy handed. Perhaps running sphinx in a stricter mode would be better? |
Yes - Sphinx's flavour of reStructuredText won't be understandable to plain docutils. I think Sphinx normally has a "dummy" build target that doesn't generate any output, but validates the input, but I don't see it in pydocstyle's docs Makefile. |
It seems better as a separate pull request, but maybe:
|
Right, nothing keeps the Makefile up-to-date and users can modify it. This is why Flake8 uses |
I'll merge this in a few minutes when the build completes successfully (had to resolve release notes conflict). @peterjc - I'm in favor of adding a linter to check for these kinds of errors in the future and don't mind depending on another package (for development / testing only, this is a no brainer). Feel free to send a followup PR for that. Thanks! |
Should close #380.
Thanks for submitting a PR!
Please make sure to check for the following items:
If you've added an error code or changed an error code behavior,
you should probably add or change a test case file under
tests/test_cases/
and addit to the list under
tests/test_definitions.py
.If you've added or changed a command line option,
you should probably add or change a test in
tests/test_integration.py
.Make sure to include the PR number after you open and get one.
Please don't get discouraged as it may take a while to get a review.