You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be possible to ignore rules on a per-file and per-line basis.
To ignore rules per file, will need to add project-wide settings file first (Project-wide settings #5). It will be easier to handle this via a settings file or the command line than to parse comments in the files themselves.
Per-line ignores could be done the same way as flake8/ruff: search for a comment ! noqa at the end of a line. The regex !\w*noqa\w*$ should do it.
After gathering rule violations for a file, check the returned line numbers, and search for ! noqa on those lines. Discard violations wherever it's found.
Could also have fine-grained ignores, such as ! ignore: E123.
Things will get trickier if we also aim to account for line continuations with &.
The text was updated successfully, but these errors were encountered:
It should be possible to ignore rules on a per-file and per-line basis.
! noqa
at the end of a line. The regex!\w*noqa\w*$
should do it.! noqa
on those lines. Discard violations wherever it's found.! ignore: E123
.&
.The text was updated successfully, but these errors were encountered: