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. #3475

Closed julian-smith-artifex-com closed 2 weeks 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.

julian-smith-artifex-com commented 2 weeks ago

Apologies, i wasn't aware of these tests. Will fix in my tree and update this PR.