1

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.

Schach21
  • 33
  • 8
  • 2
    `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 having `flymake` call `flake8` with. – nega Dec 06 '22 at 15:28
  • How do I do that? I suppose I have the latest version, since I installed flymake and emacs from scratch just a couple of weeks ago. I am sorry my questions are dumb, but I am not emacs savvy. – Schach21 Dec 06 '22 at 17:04
  • 1
    That information is probably in the manual. https://www.gnu.org/software/emacs/manual/html_node/flymake/index.html#Top – nega Dec 06 '22 at 18:45
  • [Configuring Flake8](https://flake8.pycqa.org/en/latest/user/configuration.html) – Jim Jan 26 '23 at 18:04

0 Answers0