Originally posted by **ryan-david-murphy** July 12, 2024
I'm attempting to set up flake8-based linting in Spyder (5.5.5) using the Python Language Server (pylsp). Here's what I've done so far:
1. Installed flake8 via pip: `pip install flake8`
2. In Spyder, navigated to Tools > Preferences > Completion and linting
3. Enabled code style linting in the settings
4. Confirmed that `pylsp` command works in my terminal, indicating Python Language Server is installed
5. Enabled advanced settings
However, I'm facing challenges:
- I can't find options to select flake8 as the linter in Spyder's current interface
- I'm unsure how to configure pylsp to use flake8 within Spyder
I'm seeking a comprehensive, up-to-date guide on configuring and using flake8 with pylsp in Spyder. Specifically:
- How to integrate pylsp with Spyder for linting
- How to ensure flake8 is used by pylsp within Spyder
- Where to modify flake8 settings in Spyder's interface
Any step-by-step instructions or current resources would be immensely helpful. Thank you in advance for any guidance!
Discussed in https://github.com/python-lsp/python-lsp-server/discussions/577