Skip to content

Commit

Permalink
Don't rely on flymake-ruff-program too early
Browse files Browse the repository at this point in the history
Fixes #855
  • Loading branch information
purcell committed Dec 11, 2023
1 parent 7f0b8ee commit 93c60dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/init-python.el
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

(when (maybe-require-package 'flymake-ruff)
(defun sanityinc/flymake-ruff-maybe-enable ()
(when (executable-find flymake-ruff-program)
(when (executable-find "ruff")
(flymake-ruff-load)))
(add-hook 'python-mode-hook 'sanityinc/flymake-ruff-maybe-enable))

Expand Down

0 comments on commit 93c60dd

Please sign in to comment.