Use vim for sudoedit and switch ALE to ruff, mypy and shellcheck

Drop the rvim sudoedit setup and replace pylint with ruff/mypy. Ruff's EXE001 check is turned off for sudoedit's temporary copies in /var/tmp.
This commit is contained in:
Daniele Fucini
2026-10-18 21:58:28 +02:00
parent 81e2ed075e
commit 209f9120fd
3 changed files with 9 additions and 8 deletions
-1
View File
@@ -15,7 +15,6 @@ alias sort='sort -n'
alias scrcpy='scrcpy --disable-screensaver' alias scrcpy='scrcpy --disable-screensaver'
alias ssh='kitten ssh' alias ssh='kitten ssh'
alias sudo='doas' alias sudo='doas'
alias sudoedit='doas rvim'
#alias trayer='trayer -l --edge top --align right --SetDockType true --SetPartialStrut true --expand true --widthtype request --transparent true --tint 0x232634 --height 18 --monitor 1' #alias trayer='trayer -l --edge top --align right --SetDockType true --SetPartialStrut true --expand true --widthtype request --transparent true --tint 0x232634 --height 18 --monitor 1'
alias trayer='trayer -l --edge top --align right --SetDockType true --SetPartialStrut true --expand true --widthtype request --tint 0x232634 --height 18 --monitor 1' alias trayer='trayer -l --edge top --align right --SetDockType true --SetPartialStrut true --expand true --widthtype request --tint 0x232634 --height 18 --monitor 1'
alias trc='trash-empty' alias trc='trash-empty'
+1 -1
View File
@@ -19,7 +19,7 @@ if [ ! -d ~/.cache/mutt ]; then
fi fi
export EDITOR=vim export EDITOR=vim
export SUDO_EDITOR=rvim export SUDO_EDITOR=vim
export PATH="/home/fuxino/.local/bin:$PATH" export PATH="/home/fuxino/.local/bin:$PATH"
+8 -6
View File
@@ -33,10 +33,12 @@ Plug 'ghifarit53/tokyonight-vim'
call plug#end() call plug#end()
let g:ale_linters={'python': ['pylint'], 'c': ['cc'], 'sh': ['shell'], 'tex': ['lacheck'], 'haskell': ['stack_ghc', 'hlint']} let g:ale_linters = {'python': ['ruff', 'mypy'], 'c': ['cc'], 'sh': ['shellcheck'], 'tex': ['lacheck'], 'haskell': ['stack_ghc', 'hlint']}
let g:ale_linters_explicit=1 let g:ale_linters_explicit = 1
let g:ale_enabled=1 let g:ale_enabled = 1
let g:ale_python_pylint_options='--max-line-length=160 --disable=missing-docstring --disable=invalid-name'
" sudoedit's copies in /var/tmp aren't executable
let g:ale_pattern_options = {'^/var/tmp/': {'ale_python_ruff_options': '--extend-ignore EXE001'}}
let g:ale_fixers = { let g:ale_fixers = {
\ 'haskell': ['ormolu', 'remove_trailing_lines', 'trim_whitespace'], \ 'haskell': ['ormolu', 'remove_trailing_lines', 'trim_whitespace'],
@@ -45,8 +47,8 @@ let g:ale_fixers = {
\} \}
let g:ale_haskell_ormolu_options = '--no-cabal --no-dot-ormolu' let g:ale_haskell_ormolu_options = '--no-cabal --no-dot-ormolu'
let g:rainbow_active=1 let g:rainbow_active = 1
let g:tex_flavor='latex' let g:tex_flavor = 'latex'
" }}} " }}}