Skip to content

Commit

Permalink
Add flymake-ruff for Python
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell authored and cdadar committed Nov 3, 2023
1 parent a48a965 commit e89b7e5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lisp/init-python.el
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@

(use-package pip-requirements)

(use-package flymake-ruff
:init
(defun sanityinc/flymake-ruff-maybe-enable ()
(when (executable-find flymake-ruff-program)
(flymake-ruff-load)))
:hook
(python-mode . sanityinc/flymake-ruff-maybe-enable))

(use-package toml-mode
:mode ("poetry\\.lock\\'" . toml-mode))

Expand Down

0 comments on commit e89b7e5

Please sign in to comment.