Adding support for ruff formatter (#4645)

This commit is contained in:
Joseph Henrich
2023-11-16 07:12:40 -05:00
committed by GitHub
parent 50e237facd
commit 5cddc4c8e1
7 changed files with 230 additions and 0 deletions

View File

@@ -611,6 +611,11 @@ let s:default_registry = {
\ 'suggested_filetypes': ['python'],
\ 'description': 'Fix python files with ruff.',
\ },
\ 'ruff_format': {
\ 'function': 'ale#fixers#ruff_format#Fix',
\ 'suggested_filetypes': ['python'],
\ 'description': 'Fix python files with the ruff formatter.',
\ },
\ 'pycln': {
\ 'function': 'ale#fixers#pycln#Fix',
\ 'suggested_filetypes': ['python'],