Pylsp not using .flake8
file inside project for error checking.
#4347
-
Hello! I'm new to Helix and I've just set it up for coding in Python. I've been trying to configure flake8 with pylsp for showing me errors within the editor and this is the configuration I've used inside [[language]]
name = "python"
scope = "source.python"
injection-regex = "python"
file-types = ["py"]
shebangs = ["python"]
roots = []
comment-token = "#"
language-server = { command = "pylsp" }
# TODO: pyls needs utf-8 offsets
config = { pylsp.plugins.flake8.config = ".flake8" }
indent = { tab-width = 4, unit = " " } Even though I've set the path for the flake8 configuration to be |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You might also need |
Beta Was this translation helpful? Give feedback.
You might also need
pylsp.plugins.flake8.enabled = true
in theconfig
key. The list of valid config values can be found at https://github.com/python-lsp/python-lsp-server/blob/develop/CONFIGURATION.md#python-language-server-configuration.