summaryrefslogtreecommitdiff
path: root/autoload/ale/fix/registry.vim
diff options
context:
space:
mode:
authorYining <zhang.yining@gmail.com>2023-01-27 12:24:18 +1100
committerGitHub <noreply@github.com>2023-01-27 10:24:18 +0900
commitb6f6d84c25169744f43db6d0ee296ee44eb78d91 (patch)
tree7df3bc78af81f76a7ed2813f90ccae96a8d0e16b /autoload/ale/fix/registry.vim
parent26c79014f52b0306ec619666bc73766f22621edb (diff)
downloadale-b6f6d84c25169744f43db6d0ee296ee44eb78d91.zip
add: pycln as a python linter and fixer (#4415)
this commit adds pycln as a Python linter and fixer, together with some tests and documentation. It addresses #4340 pycln repo: https://github.com/hadialqattan/pycln
Diffstat (limited to 'autoload/ale/fix/registry.vim')
-rw-r--r--autoload/ale/fix/registry.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/autoload/ale/fix/registry.vim b/autoload/ale/fix/registry.vim
index 28e33926..6657fc3c 100644
--- a/autoload/ale/fix/registry.vim
+++ b/autoload/ale/fix/registry.vim
@@ -585,6 +585,11 @@ let s:default_registry = {
\ 'function': 'ale#fixers#ruff#Fix',
\ 'suggested_filetypes': ['python'],
\ 'description': 'Fix python files with ruff.',
+\ },
+\ 'pycln': {
+\ 'function': 'ale#fixers#pycln#Fix',
+\ 'suggested_filetypes': ['python'],
+\ 'description': 'remove unused python import statements',
\ }
\}