I'm using synatastic with flake8 in neovim for python development. I want to name variables in upper case occasionally but I don't want to turn the warning off completely. However I get bored of adding the comments to the end of lines to silence the flake8 warnings/errors (like the following one):
R = E_pi_sqroot.T @ A @ E_pi_sqroot # noqa: N806
In general I would like to silence any flake8 warning in the location list with a mapping so it would not always be
N806 but should be acquired from the location window line:
experimental/one_shot/rkda.py|108 col 26 warning| argument name 'X' should be lowercase [N803] experimental/one_shot/rkda.py|119 col 10 warning| variable 'K' in function should be lowercase [N806]
Is there an easy way to create a mapping that would just add the correct
noqa end of line comment if I am on the line in the code buffer or location window? I don't know where to start with this one.