summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2022-12-25 15:13:04 +0000
committerw0rp <devw0rp@gmail.com>2022-12-25 15:13:10 +0000
commit2ae04b310a1f1a2f08a3007702f7aeb16443c8b2 (patch)
tree1ba4a22f50e904211384cca36301d025dea7d4cd
parent4c5c47b5939ab3446ccc2f9cb1de57a1ec47e379 (diff)
downloadale-2ae04b310a1f1a2f08a3007702f7aeb16443c8b2.zip
Enable ruff for Python by default
-rw-r--r--autoload/ale/linter.vim2
-rw-r--r--doc/ale.txt2
-rw-r--r--test/test_filetype_linter_defaults.vader2
3 files changed, 3 insertions, 3 deletions
diff --git a/autoload/ale/linter.vim b/autoload/ale/linter.vim
index 99faa357..d90deace 100644
--- a/autoload/ale/linter.vim
+++ b/autoload/ale/linter.vim
@@ -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': [],
diff --git a/doc/ale.txt b/doc/ale.txt
index a36a6576..01474860 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -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': [],
diff --git a/test/test_filetype_linter_defaults.vader b/test/test_filetype_linter_defaults.vader
index 0f463880..ca73a8e5 100644
--- a/test/test_filetype_linter_defaults.vader
+++ b/test/test_filetype_linter_defaults.vader
@@ -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