Enable ruff for Python by default

This commit is contained in:
w0rp
2022-12-25 15:13:04 +00:00
parent 4c5c47b593
commit 2ae04b310a
3 changed files with 3 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ let s:default_ale_linters = {
\ 'jsonc': [],
\ 'perl': ['perlcritic'],
\ 'perl6': [],
\ 'python': ['flake8', 'mypy', 'pylint', 'pyright'],
\ 'python': ['flake8', 'mypy', 'pylint', 'pyright', 'ruff'],
\ 'rust': ['cargo', 'rls'],
\ 'spec': [],
\ 'text': [],

View File

@@ -1647,7 +1647,7 @@ g:ale_linters *g:ale_linters*
\ 'jsonc': [],
\ 'perl': ['perlcritic'],
\ 'perl6': [],
\ 'python': ['flake8', 'mypy', 'pylint', 'pyright'],
\ 'python': ['flake8', 'mypy', 'pylint', 'pyright', 'ruff'],
\ 'rust': ['cargo', 'rls'],
\ 'spec': [],
\ 'text': [],

View File

@@ -83,7 +83,7 @@ Execute(The defaults for the perl6 filetype should be correct):
AssertEqual [], GetLinterNames('perl6')
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