From 85e39a618ababbe386e64df18574ab35f063f974 Mon Sep 17 00:00:00 2001 From: Kurtis Moxley Date: Thu, 19 May 2022 23:08:11 +0800 Subject: [PATCH] Update vim-flake8. --- sources_non_forked/vim-flake8/README.mdown | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sources_non_forked/vim-flake8/README.mdown b/sources_non_forked/vim-flake8/README.mdown index 338e4450..1d2d764d 100644 --- a/sources_non_forked/vim-flake8/README.mdown +++ b/sources_non_forked/vim-flake8/README.mdown @@ -88,11 +88,11 @@ To customize the gutter markers, set any of `flake8_error_marker`, `flake8_warni `flake8_pyflake_marker`, `flake8_complexity_marker`, `flake8_naming_marker`. Setting one to the empty string disables it. Ex.: - flake8_error_marker='EE' " set error marker to 'EE' - flake8_warning_marker='WW' " set warning marker to 'WW' - flake8_pyflake_marker='' " disable PyFlakes warnings - flake8_complexity_marker='' " disable McCabe complexity warnings - flake8_naming_marker='' " disable naming warnings + let g:flake8_error_marker='EE' " set error marker to 'EE' + let g:flake8_warning_marker='WW' " set warning marker to 'WW' + let g:flake8_pyflake_marker='' " disable PyFlakes warnings + let g:flake8_complexity_marker='' " disable McCabe complexity warnings + let g:flake8_naming_marker='' " disable naming warnings To customize the colors used for markers, define the highlight groups, `Flake8_Error`, `Flake8_Warning`, `Flake8_PyFlake`, `Flake8_Complexity`, `Flake8_Naming`: @@ -132,7 +132,7 @@ maximum line length default. This is a config setting that should be set in flake8 itself. (vim-flake8 "just" invokes it and deals with showing the output in Vim's quickfix window.) -To do so, put the following into your `~/.config/flake8` file: +To do so, put the following into a `.flake8` file at the root of your project: [flake8] max-line-length = 120 @@ -141,7 +141,7 @@ To do so, put the following into your `~/.config/flake8` file: History ------- 1.6: Deprecated configuring flake8 options through Vim settings. Instead, -advise users to use the `~/.config/flake8` config file. +advise users to use a `.flake8` config file in the root of your project. - Decprecated options: - `g:flake8_builtins`