Remove flymake-ruff and add flymake-yamllint config
Fix using ruff via python-flymake-command which gives better messages than flymake-ruff anyway (distinguishes between warnings and errors) Add config to start flymake-mode and setup flymake-yamllint for YAML files
This commit is contained in:
parent
89eedc5419
commit
6e89a133d0
35
init.el
35
init.el
|
@ -456,10 +456,10 @@
|
||||||
(set-face-attribute 'doom-modeline nil :weight 'normal)
|
(set-face-attribute 'doom-modeline nil :weight 'normal)
|
||||||
(doom-modeline-mode +1))
|
(doom-modeline-mode +1))
|
||||||
|
|
||||||
(line-number-mode +1)
|
(line-number-mode -1)
|
||||||
(column-number-mode +1)
|
(column-number-mode -1)
|
||||||
(size-indication-mode +1)
|
(size-indication-mode +1)
|
||||||
(display-time-mode +1)
|
(display-time-mode -1)
|
||||||
|
|
||||||
(require 'battery)
|
(require 'battery)
|
||||||
(when (and battery-status-function
|
(when (and battery-status-function
|
||||||
|
@ -909,27 +909,22 @@
|
||||||
:hook (prog-mode . (lambda () (flymake-mode +1))))
|
:hook (prog-mode . (lambda () (flymake-mode +1))))
|
||||||
|
|
||||||
(use-package flymake-popon
|
(use-package flymake-popon
|
||||||
:after flymake
|
|
||||||
:diminish
|
:diminish
|
||||||
:init
|
:requires flymake
|
||||||
(global-flymake-popon-mode +1))
|
:hook (flymake-mode . (lambda () (flymake-popon-mode +1))))
|
||||||
|
|
||||||
(use-package flymake-collection
|
|
||||||
:disabled
|
|
||||||
:after flymake
|
|
||||||
:custom
|
|
||||||
;; Extra mypy config
|
|
||||||
(flymake-collection-mypy-args '("--ignore-missing-imports"
|
|
||||||
"--follow-imports=skip"
|
|
||||||
"--check-untyped-defs"
|
|
||||||
"--warn-unreachable"
|
|
||||||
"--show-error-codes"
|
|
||||||
"--no-color-output")))
|
|
||||||
|
|
||||||
(use-package flymake-shellcheck
|
(use-package flymake-shellcheck
|
||||||
:after flymake
|
:if (executable-find "shellcheck")
|
||||||
|
:requires flymake
|
||||||
:hook (sh-mode . flymake-shellcheck-load))
|
:hook (sh-mode . flymake-shellcheck-load))
|
||||||
|
|
||||||
|
(use-package flymake-yamllint
|
||||||
|
:if (executable-find "yamllint")
|
||||||
|
:requires flymake
|
||||||
|
:hook (yaml-ts-mode . (lambda ()
|
||||||
|
(progn (flymake-mode +1)
|
||||||
|
(flymake-yamllint-setup)))))
|
||||||
|
|
||||||
(use-package project
|
(use-package project
|
||||||
:custom
|
:custom
|
||||||
(project-switch-use-entire-map t)
|
(project-switch-use-entire-map t)
|
||||||
|
@ -1001,7 +996,7 @@ Calls `project-remember-project-under' for ~/Projects/"
|
||||||
:custom
|
:custom
|
||||||
(python-shell-interpreter "python3")
|
(python-shell-interpreter "python3")
|
||||||
(python-flymake-command
|
(python-flymake-command
|
||||||
(cond ((executable-find "ruff") '("ruff" "check" "-e" "--output-format" "pylint" "-"))
|
(cond ((executable-find "ruff") '("ruff" "check" "--output-format=pylint" "--stdin-filename=stdin" "-"))
|
||||||
((executable-find "flake8") '("flake8" "--max-line-length" "88" "-"))
|
((executable-find "flake8") '("flake8" "--max-line-length" "88" "-"))
|
||||||
(t '("pyflakes"))))
|
(t '("pyflakes"))))
|
||||||
(python-check-command
|
(python-check-command
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
;; password-store
|
;; password-store
|
||||||
pass password-store password-store-otp
|
pass password-store password-store-otp
|
||||||
;; IDE
|
;; IDE
|
||||||
treesit-auto flymake-popon flymake-ruff flymake-shellcheck flymake-yamllint apheleia envrc rainbow-delimiters aggressive-indent python-docstring nix-mode lua-mode
|
treesit-auto flymake-popon flymake-shellcheck flymake-yamllint apheleia envrc rainbow-delimiters aggressive-indent python-docstring nix-mode lua-mode
|
||||||
;; Media
|
;; Media
|
||||||
emms
|
emms
|
||||||
;; org-mode
|
;; org-mode
|
||||||
|
|
Loading…
Reference in a new issue