Can the null-ls formatter be configured to automatically format only new code, and leave existing code alone?

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • black

    The uncompromising Python code formatter

  • When submitting PR's for my team to code review, I want to make sure my code is properly formatted using the Black formatter for Python.

  • lsp-format-modifications.nvim

    LSP formatting, but only on modified text regions.

  • I’ve been using the plugin lsp-format-modifications to format only modified text regions. Haven’t tried it with Python black though so would be worth testing it out yourself :)) There’s a note at the bottom of the README about how to set it up with null-ls :)

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • darker

    Apply black reformatting to Python files only in regions changed since a given commit. For a practical usage example, see the blog post at https://dev.to/akaihola/improving-python-code-incrementally-3f7a

  • Not an answer to your question but in the specific case of black you can instead use: https://github.com/akaihola/darker

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Visual Selection Range Formatting Support for Python files using black formatter

    2 projects | /r/neovim | 8 Jul 2023
  • Data engineering projects with template: Airflow, dbt, Docker, Terraform (IAC), Github actions (CI/CD) & more

    8 projects | /r/dataengineering | 29 Oct 2022
  • Saturday Daily Thread: Resource Request and Sharing! Daily Thread

    2 projects | /r/Python | 22 Jan 2022
  • How to setup Black and pre-commit in python for auto text-formatting on commit

    3 projects | dev.to | 29 Mar 2024
  • Let's meet Black: Python Code Formatting

    2 projects | dev.to | 7 Feb 2024