ruff icon indicating copy to clipboard operation
ruff copied to clipboard

D301 breaks Click docstrings that use the \b escape sequence

Open ThiefMaster opened this issue 8 months ago • 3 comments

Click uses \b to prevent re-wrapping: https://click.palletsprojects.com/en/8.1.x/documentation/#preventing-rewrapping

Maybe this rule could detect if it's a function docstring that has a @click.* decorator on it, or have a setting that whitelists certain escape sequences.

ThiefMaster avatar Nov 15 '23 15:11 ThiefMaster