Settings for ruff linter and formatter in Python LSP configuration

I think I have a configuration now that is okay. I’m using ruff only now, as a linter and as a formatter. Maybe the added value of pyright of basedpyright is limited.

Instead of using the trick with pylsp_in_env, I’m using ruff that is installed via uv tool install, as described in my original post. I copied the configuration described in Ruff’s documentation for Kate: docs.astral.sh/ruff/editors/setup/

In my pyproject.toml I added these settings:

[tool.ruff.format]
quote-style = “double”
docstring-code-format = true
indent-style = “space”

[tool.ruff.lint]
select = [“E”, “F”, “W”, “B”, “I”, “RUF”, “N”, “LOG”, “ERA”, “W”, “D”, “UP”, “ANN”, “ASYNC”, “S”, “RET”, “TCH”, “ARG”, “PTH”, “DOC”]

[tool.ruff.lint.pydocstyle]
convention = “google”

Kate is now very strict for my personal projects. And in other projects the settings can be changed.

I’m closing the topic.