Black

The uncompromising Python code formatter

Black is a deterministic Python code formatter that reformats entire files into a single consistent style with almost no configuration. It aims to end style debates in code review by making formatting automatic.

Key features

  • Deterministic, minimal-configuration formatting
  • Fast incremental formatting with caching
  • Jupyter notebook support
  • Editor and pre-commit integrations

Try it on DevTools Daily

Similar tools

  • Ruff

    Extremely fast Python linter and code formatter, written in Rust

    by AstralFreeOpen sourceCLI, VS Code, JetBrains
  • Biome

    Fast formatter and linter for JavaScript, TypeScript, JSON, and CSS

    FreeOpen sourceCLI, VS Code, JetBrains
  • Prettier

    Opinionated code formatter for JavaScript, TypeScript, CSS, Markdown, and more

    FreeOpen sourceCLI, VS Code, JetBrains
  • ESLint

    Pluggable linter that finds and fixes problems in JavaScript and TypeScript

    FreeOpen sourceCLI, VS Code, JetBrains
  • Oxlint

    Fast JavaScript and TypeScript linter written in Rust

    by VoidZeroFreeOpen sourceCLI, VS Code
  • ShellCheck

    Static analysis tool that finds bugs in bash and sh shell scripts

    FreeOpen sourceWeb, CLI, macOS +2

Built a tool like Black? Submit it for review