codespell-project / codespell

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

I need to ignore "image/png" the contents of the ipynb(python) file / .pre-commit-config.yaml #3436

Closed ruslansenatorov closed 1 month ago

ruslansenatorov commented 1 month ago

I need to ignore this line in the python file with the ipynb extension

image

ruslansenatorov commented 1 month ago

I insert pictures into my ipynb file, but the codespell checked "image/png"

ruslansenatorov commented 1 month ago

all format jpeg|png|gif|bmp|tiff

.pre-commit-config.yaml

 args:
          - --ignore-regex=^\s*"image\/(jpeg|png|gif|bmp|tiff)":\s.*

only PNG

.pre-commit-config.yaml

 args:
          - --ignore-regex=^\s*"image\/png":\s.*

I solved the problem, it worked

DimitriPapadopoulos commented 1 month ago

Alternatives: