Skip to content
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

False positive: “D000 PEP number must be a number from 0 to 9999” when using anchor #115

Closed
flying-sheep opened this issue Dec 20, 2022 · 0 comments · Fixed by #116
Closed

Comments

@flying-sheep
Copy link
Contributor

Sphinx redefines the pep role to allow for an anchor: https://github.com/sphinx-doc/sphinx/blob/cc314f13e8a98393ab018d83d8957a724a6f338a/sphinx/roles.py#L198

Therefore :pep:`8#specification` should be considered valid unless doc8 is called with --no-sphinx. This is however not the case. Running doc8 on the above RST snippet results in the false positive “D000 PEP number must be a number from 0 to 9999”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant