purcell / emacs.d

An Emacs configuration bundle with batteries included
BSD 2-Clause "Simplified" License
6.82k stars 2.04k forks source link

Multiple Python flymake checkers #845

Closed devnich closed 8 months ago

devnich commented 1 year ago

Hi Steve,

I'm not sure if this is a bug, or expected behavior from the flymake-flycheck module.

I create a new Python file with a single line:

import matplotlib.pyplot as plt

Flymake correctly highlights the line with a warning. Moving the cursor to the line causes 5 warnings to appear in the minibuffer:

Unused matplotlib.pyplot imported as plt [python-pylint]
'matplotlib.pyplot as plt' imported but unused [python-flake8]
Unused matplotlib.pyplot imported as plt [python-pylint]
'matplotlib.pyplot as plt' imported but unused [python-flake8]
'matplotlib.pyplot as plt' imported but unused

Do you have any suggestions on how to remove some of the redundancy? Thanks!

ngn999 commented 11 months ago

I just uninstall pylint. :)

purcell commented 11 months ago

Hmm, it looks like the same checker is in there multiple times — I've pushed changes to the config (and to flymake-flycheck to address this). That might help a little. Note that you can add unwanted checkers to flycheck-disabled-checkers as needed.

lvii commented 8 months ago

Hi @purcell hope to add ruff (An extremely fast Python linter, written in Rust) support. Thx.

https://github.com/flycheck/flycheck/issues/1974

purcell commented 8 months ago

@lvii added ✅