---
title: "💭 configuring pylsp · helix-editor/helix · Discussion #6623"
description: "!https://github.com/helix-editor/helix/discussions/6623"
date: 2024-10-08
published: true
tags:
  - helix
  - thought
template: link
---


<div class="embed-card embed-card-external">
  <a href="https://github.com/helix-editor/helix/discussions/6623" class="embed-card-link" target="_blank" rel="noopener noreferrer">
    <div class="embed-card-image">
      <img src="https://opengraph.githubassets.com/1ba4c03690ca8a923b94a9be9e0f2a4bdf547127428cf443bf525cf93b4bb3d6/helix-editor/helix/discussions/6623" alt="configuring pylsp · helix-editor helix · Discussion #6623 — Hi, I&#39;m trying to make some modifications to the default pylsp settings as I do not strictly follow PEP in my personal projects. I googled some examples but I cannot get them to work, so I am wonde..." loading="lazy">
    </div>
    <div class="embed-card-content">
      <div class="embed-card-title">configuring pylsp · helix-editor helix · Discussion #6623</div>
      <div class="embed-card-description">Hi, I&#39;m trying to make some modifications to the default pylsp settings as I do not strictly follow PEP in my personal projects. I googled some examples but I cannot get them to work, so I am wonde...</div>
      <div class="embed-card-meta">GitHub &middot; github.com</div>
    </div>
  </a>
</div>


How to set your python formatter to black with helix.  The following snippet lays out how to set the helix editor to auto-format on save with the black formatter.

``` toml
[[language]]
name = "python"
language-servers = ["pylsp"]

[language-server.pylsp.config.pylsp]
plugins.pyls_mypy.enabled = true
plugins.pyls_mypy.live_mode = true
plugins.flake8.maxLineLength = 88
plugins.pycodestyle.maxLineLength = 88

[language.formatter]
command = "black"
args = ["--line-length", "88", "--quiet", "-"]
```

!!! note

    This post is a <a href="/thoughts/" class="wikilink" data-title="Thoughts" data-description="These are generally my thoughts on a web page or some sort of url, except a rare few don&#39;t have a link. These are dual published off of my..." data-date="2024-04-01">thought</a>. It's a short note that I make
    about someone else's content online <a href="/tags/thoughts/" class="hashtag-tag" data-tag="thoughts" data-count=2 data-reading-time=3 data-reading-time-text="3 minutes">#thoughts</a>
