I'm trying to use flake8 as the default python linter using python-language-server on neovim v0.5.
python-lsp documentation says to set pylsp.configurationSources to ['flake8'], but doesn't specify which file to edit.
Where does the python-lsp-server config file reside?
According to flake8 documentation, the location of flake8 config varies based on systems, on Linux and Mac, it is
~/.config/flake8, and for Windows, it is$HOME\.flake8($HOMEis likeC:\\Users\sigmavirus24). The content should be in INI format:To suppress a single warning, it is also handy to add
# noqa: F841-like (change the code to the actual code you want to use) comment string to suppress it.Ref: https://jdhao.github.io/2020/11/05/pyls_flake8_setup/#config-location