codespell-project / codespell

check code for common misspellings
GNU General Public License v2.0
1.81k stars 465 forks source link

Add --ignore-multiline-regex option. #3476

Closed julian-smith-artifex-com closed 1 week ago

julian-smith-artifex-com commented 2 weeks ago

Allows exclusion of multiline regions. Matching regions are replaced with blank lines.

This would allow codespell to be used with PyMuPDF, where we have many multi-line strings within Python test scripts that need to be excluded.

This is a second PR for these changes; tests now pass.

julian-smith-artifex-com commented 1 week ago

Could someone approve the above workflows so we can check this PR is passing tests? Thanks.

larsoner commented 1 week ago

Done

julian-smith-artifex-com commented 1 week ago

Done

Thanks, looks like everything is passing.

Is there anything i can do to get this PR approved or modified or rejected?

larsoner commented 1 week ago

Nice, seems to be well documented, let's give it a shot and fix it if people run into issues. Thanks @julian-smith-artifex-com !