While PEP 257 suggests to use lowercase literals, Python allows uppercase literals as string prefixes.
Unlike D301 and 302, error code D300 is not reported if uppercase docstring prefixes are being used (e.g., R'''...'''). The current implementation of D300 also causes a false positive for uppercase literals with double quotes (e.g., R"""Sum\\mary."""), and detects the quotes incorrectly for a ur'''...''' docstring prefix.
This proposes a more robust implementation for D300 and adds some uppercase tests for D301 and D302, which they already pass.
EDIT: For the sake of simplicity, the D302 uppercase literal test will be included in another PR.
This looks good to me. Seems reasonable too.
Instead write "Current Development Version".
Looks good. Just fix the small comment I made in the docs and I'll merge this.
Consider uppercase docstring prefixes at D300.
Still looks good to me. I think @Nurdok wanted that entire line replaced with "Current development version" but ¯\_(ツ)_/¯
That is what I meant, but I'll just change this manually right after this merge.