purcell / emacs.d

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

symbol flymake-ruff-program is not bound #855

Closed arthurl closed 7 months ago

arthurl commented 7 months ago

Hi,

In init-python.el, it seems that the flymake-ruff package does not "pre-load" (not sure what the correct terminology is here, what i mean is that merely doing require-package does not bind the symbol in the way that an autoloaded function is bound) the variable flymake-ruff-program. Thus, the statement (executable-find flymake-ruff-program) fails every time.

Not sure what a good solution is here; doing (require 'flymake-ruff) would work, but ideally the package shouldn't be loaded at all until the user uses python-mode.

Thanks,

Arthur