This question was asked before here, but the solution doesn't work. It could be because I am not restarting flymake correctly.
The question is: how to have flymake ignore certain errors and warnings? The answer there was to have a file ~/.config/flake8 with
[flake]
ignore = E303
to ignore error E303. This is to ignore the error globally. I did this, but I didn't notice any changes. To restart flymake, I ran flymake-start, but still nothing happened. I didn't see an option that said restart for flymake. I tried with flymake-mode, but that also didn't do anything.
I have elpy for virtual environments, but I used lsp-python for code highlighting. I don't know if there could be a conflict there. flake8 is installed in the virtual environment I have active. I am not sure what other information is relevant to solve this problem. Please let me know.
flake8(as of version 5?) no longer uses a global or user config. Just project-level configs or a file specified via command-line option. You'll probably have to adjust the options you're havingflymakecallflake8with.