AutoYADM commit: 2025-07-06 00:55:38

This commit is contained in:
Daniel Fichtinger 2025-07-06 00:55:38 -04:00
parent eec5d16019
commit db3ade3d3b

View file

@ -1,11 +1,14 @@
hook global WinSetOption filetype=python %{ hook global WinSetOption filetype=python %{
# set-option window expandtab true # set-option window expandtab true
# set-option window softtabstop 4 # set-option window softtabstop 4
set-option window formatcmd "ruff format --line-length 74 -" set-option window formatcmd %{
ruff check --select I --fix --stdin-filename $kak_buffile - 2>/dev/null |
ruff format --line-length 74 -
}
hook -group python-auto-format window BufWritePre .* %{ hook -group python-auto-format window BufWritePre .* %{
try format try format
} }
hook -once -always WinSetOption filetype=.* %{ hook -once -always window WinSetOption filetype=.* %{
unset-option window formatcmd unset-option window formatcmd
remove-hooks window python-auto-format remove-hooks window python-auto-format
} }
@ -197,5 +200,3 @@ hook global BufCreate .*[.](conf) %{
hook global BufCreate .*[.](jinja) %{ hook global BufCreate .*[.](jinja) %{
set-option buffer filetype html set-option buffer filetype html
} }