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
This commit is contained in:
Yining
2023-01-27 12:24:18 +11:00
committed by GitHub
parent 26c79014f5
commit b6f6d84c25
11 changed files with 521 additions and 0 deletions

View File

@@ -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',
\ }
\}