reviewdog / action-flake8

Runs flake8 with Reviewdog :dog:
https://github.com/reviewdog/reviewdog
MIT License
17 stars 7 forks source link

invalid escape sequence warning on an r string in a docstring #50

Closed murrayreadccdc closed 1 year ago

murrayreadccdc commented 1 year ago

I have this line of code in a docstring >>> s = SMARTSSubstructure(r"I/C=C\F") flake8 is reporting an issue which does not appear to be valid ⚠️ [flake8] <605> reported by [reviewdog](https://github.com/reviewdog/reviewdog) 🐶 invalid escape sequence '\F'

murrayreadccdc commented 1 year ago

I take it back - the docstring also needs to be an r-string to make this work properly.