mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-08 05:24:46 +08:00
Enable ruff for Python by default
This commit is contained in:
@@ -51,7 +51,7 @@ let s:default_ale_linters = {
|
|||||||
\ 'jsonc': [],
|
\ 'jsonc': [],
|
||||||
\ 'perl': ['perlcritic'],
|
\ 'perl': ['perlcritic'],
|
||||||
\ 'perl6': [],
|
\ 'perl6': [],
|
||||||
\ 'python': ['flake8', 'mypy', 'pylint', 'pyright'],
|
\ 'python': ['flake8', 'mypy', 'pylint', 'pyright', 'ruff'],
|
||||||
\ 'rust': ['cargo', 'rls'],
|
\ 'rust': ['cargo', 'rls'],
|
||||||
\ 'spec': [],
|
\ 'spec': [],
|
||||||
\ 'text': [],
|
\ 'text': [],
|
||||||
|
|||||||
@@ -1647,7 +1647,7 @@ g:ale_linters *g:ale_linters*
|
|||||||
\ 'jsonc': [],
|
\ 'jsonc': [],
|
||||||
\ 'perl': ['perlcritic'],
|
\ 'perl': ['perlcritic'],
|
||||||
\ 'perl6': [],
|
\ 'perl6': [],
|
||||||
\ 'python': ['flake8', 'mypy', 'pylint', 'pyright'],
|
\ 'python': ['flake8', 'mypy', 'pylint', 'pyright', 'ruff'],
|
||||||
\ 'rust': ['cargo', 'rls'],
|
\ 'rust': ['cargo', 'rls'],
|
||||||
\ 'spec': [],
|
\ 'spec': [],
|
||||||
\ 'text': [],
|
\ 'text': [],
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ Execute(The defaults for the perl6 filetype should be correct):
|
|||||||
AssertEqual [], GetLinterNames('perl6')
|
AssertEqual [], GetLinterNames('perl6')
|
||||||
|
|
||||||
Execute(The defaults for the python filetype should be correct):
|
Execute(The defaults for the python filetype should be correct):
|
||||||
AssertEqual ['flake8', 'mypy', 'pylint', 'pyright'], GetLinterNames('python')
|
AssertEqual ['flake8', 'mypy', 'pylint', 'pyright', 'ruff'], GetLinterNames('python')
|
||||||
|
|
||||||
let g:ale_linters_explicit = 1
|
let g:ale_linters_explicit = 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user