Django now uses black to format it's codebase

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/Python

Our great sponsors
  • InfluxDB - Access the most powerful time series database as a service
  • Sonar - Write Clean Python Code. Always.
  • ONLYOFFICE ONLYOFFICE Docs — document collaboration in your environment
  • CodiumAI - TestGPT | Generating meaningful tests for busy devs
  • deps

    Django Enhancement Proposals

  • Django

    The Web framework for perfectionists with deadlines.

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • blue

    The slightly less uncompromising Python code formatter.

    You would like https://github.com/grantjenks/blue . Its like black, but, among a few other things, defaults to using single quotes.

  • 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

    There's also Darker for only reformatting (using Black) the lines modified by commits.

  • black

    The uncompromising Python code formatter

    This is the main issue with your argument. You're missing the whole point of Black. That's not there reason to force you into using double quotes. That's there reason to force you into using double quotes. The decision to normalise quotes was made before the decision of which quote type to use.

  • prettier-plugin-nunjucks

    [WIP] Prettier plugin to format Nunjucks

    Yes, there’s Prettier. For Jinja, you can try the Nunjucks plugin.

  • prettier

    Prettier is an opinionated code formatter.

    Yes, there’s Prettier. For Jinja, you can try the Nunjucks plugin.

  • Sonar

    Write Clean Python Code. Always.. Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • djhtml

    Django/Jinja template indenter

    https://github.com/rtts/djhtml is basic, but useful in the few things it does!

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