flake8 railroad.py produces an exeception: ValueError: Error code '#' supplied to 'ignore' option does not match '^[A-Z]{1,3}[0-9]{0,3}$' because flake8 does not allow inline comments (ref. https://flake8.pycqa.org/en/latest/user/configuration.html):
Following the recommended settings for Python’s configparser, Flake8 does not support inline comments for any of the keys. So while this is fine:
[flake8]
per-file-ignores =
imported but unused
__init__.py: F401
this is not:
[flake8]
per-file-ignores =
init.py: F401 # imported but unused
flake8 railroad.py
produces an exeception:ValueError: Error code '#' supplied to 'ignore' option does not match '^[A-Z]{1,3}[0-9]{0,3}$'
because flake8 does not allow inline comments (ref. https://flake8.pycqa.org/en/latest/user/configuration.html):I'll submit a PR to fix this.