It doesn't seem to be possible to detect the difference between "string""" and """string""" with just string matching (or, at least, it seems complicated), so this uses the tokenize module instead. In the future we might want to switch to ast instead, which in other places would also allow fixing #15.
[x] Closes #131
[x] Tests added
[x] Passes pre-commit run --all-files
[x] User visible changes (including notable bug fixes) are documented in changelog.rst
It doesn't seem to be possible to detect the difference between
"string"""
and"""string"""
with just string matching (or, at least, it seems complicated), so this uses thetokenize
module instead. In the future we might want to switch toast
instead, which in other places would also allow fixing #15.pre-commit run --all-files
changelog.rst