Flake fails per-file-ignore for six-symbols errors codes
I have custom flake8 plugins, that generates six-symbols errors codes (like
TAE001). Here is example plugin: https://github.com/best-doctor/flake8-annotations-coverage
Sadly, I can't put such codes in
per-file-ignores: it fails with this message:
There was a critical error during execution of Flake8: Expected `per-file-ignores` to be a mapping from file exclude patterns to ignore codes.
Here docs says that three letters and three digits error codes are valid: https://flake8.pycqa.org/en/latest/plugin-development/registering-plugins.html :
Please Note: Your entry point does not need to be exactly 4 characters as of Flake8 3.0. Consider using an entry point with 3 letters followed by 3 numbers (i.e. ABC123 ).
Error happens because of this regexp: https://gitlab.com/pycqa/flake8/blob/master/src/flake8/utils.py#L54
My flake8 version is
flake8==3.7.5 and was installed via
pip in python 3.7 environment. Here is full
flake8 --bug-report output: https://gist.github.com/Melevir/9a0af6a4d8742f8b7064cc564df4fbd8
I'll be glad to fix the issue if it is valid and approved. If not, help me to fix it please.