Black Alternatives

Similar projects and alternatives to black

  1. CPython

    1,608 black VS CPython

    The Python programming language

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. fastapi

    594 black VS fastapi

    FastAPI framework, high performance, easy to learn, fast to code, ready for production

  4. prettier

    506 black VS prettier

    Prettier is an opinionated code formatter.

  5. ESLint

    471 black VS ESLint

    Find and fix problems in your JavaScript code.

  6. Poetry

    417 black VS Poetry

    Python packaging and dependency management made easy

  7. pre-commit

    226 black VS pre-commit

    A framework for managing and maintaining multi-language pre-commit hooks.

  8. ruff

    150 black VS ruff

    An extremely fast Python linter and code formatter, written in Rust.

  9. pyright

    151 black VS pyright

    Static Type Checker for Python

  10. mypy

    133 black VS mypy

    Optional static typing for Python

  11. awesome-python

    90 black VS awesome-python

    An opinionated list of Python frameworks, libraries, tools, and resources

  12. tinygrad

    58 black VS tinygrad

    Discontinued You like pytorch? You like micrograd? You love tinygrad! ❤️ [Moved to: https://github.com/tinygrad/tinygrad] (by geohot)

  13. isort

    45 black VS isort

    A Python utility / library to sort imports.

  14. Flake8

    42 black VS Flake8

    flake8 is a python tool that glues together pycodestyle, pyflakes, mccabe, and third-party plugins to check the style and quality of some python code.

  15. ipython

    36 black VS ipython

    Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.

  16. Pylint

    30 black VS Pylint

    It's not just a linter that annoys you!

  17. pre-commit-hooks

    Some out-of-the-box hooks for pre-commit

  18. yapf

    22 black VS yapf

    A formatter for Python files

  19. bandit

    29 black VS bandit

    Bandit is a tool designed to find common security issues in Python code.

  20. autopep8

    18 black VS autopep8

    A tool that automatically formats Python code to conform to the PEP 8 style guide.

  21. autoflake

    8 black VS autoflake

    Removes unused imports and unused variables as reported by pyflakes

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better black alternative or higher similarity.

black discussion

Log in or Post with
  1. User avatar
    todaypp
    · almost 2 years ago
    · Reply

    Review ★★★★★ 9/10

  2. User avatar
    616154cb
    · almost 2 years ago
    · Reply

    Review ★★★★★ 10/10

black reviews and mentions

Posts with mentions or reviews of black. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2026-05-07.
  • Mojo 1.0 Beta
    16 projects | news.ycombinator.com | 7 May 2026
  • The Unix Philosophy for Agentic Coding
    4 projects | dev.to | 14 Mar 2026
    The better approach: let the agent write code however it wants, then run Prettier, Black, Ruff, or ESLint. Zero ambiguity. The agent doesn't need to think about formatting at all, which means fewer tokens spent and fewer decisions that could go wrong.
  • What Is Static Code Analysis and How Does It Work
    4 projects | dev.to | 26 Feb 2026
    Popular Examples: Prettier, Black (for Python), gofmt (for Go).
  • Build Python Packages: Development to PyPI Guide
    3 projects | dev.to | 21 Nov 2025
    repos: - repo: https://github.com/psf/black rev: 23.9.1 hooks: - id: black - repo: https://github.com/pycqa/flake8 rev: 6.1.0 hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy rev: v1.5.1 hooks: - id: mypy
  • Your first django PR - from scratch to improved patch
    2 projects | dev.to | 31 Oct 2025
    Once you made your changes, you'll probably want to do a commit. That's when the pre-commit hooks are activated. Their purpose is to catch as many errors before you push them to the remote repository. For instance, your code will be formatted with black. You'll need to re-stage the changes made by the pre-commit hooks and retry the commit. You might have to manually fix some errors, too. Here is an example error message for a comment line that is too long:
  • Stop writing code that future devs will hate you for
    4 projects | dev.to | 28 Sep 2025
    Python: Black (“Any color you like, as long as it’s Black”)
  • Git Hooks for Automated Code Quality Checks Guide 2025
    3 projects | dev.to | 6 Aug 2025
    repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files - id: check-merge-conflict - repo: https://github.com/psf/black rev: 23.1.0 hooks: - id: black - repo: https://github.com/pycqa/flake8 rev: 6.0.0 hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-eslint rev: v8.36.0 hooks: - id: eslint files: \.(js|jsx|ts|tsx)$
  • Don't Know These 6 Tools? No Wonder Your Python Development Is So Slow
    4 projects | dev.to | 10 Jul 2025
    👉 https://github.com/psf/black
  • Pyrefly vs. Ty: Comparing Python's Two New Rust-Based Type Checkers
    8 projects | news.ycombinator.com | 27 May 2025
    Coming from a Meta background (not speaking on behalf of Meta):

    "package/dependency management" - Everything is checked into a monorepo, and built with [Buck2](https://buck2.build/). There's tooling to import/update packages, but no need to reinvent pip or other package managers. Btw, Buck2 is pretty awesome and supports a ton of languages beyond python, but hasn't gotten a ton of traction outside of Meta.

    "linting, formatting" - [Black](https://github.com/psf/black) and other public ecosystem tooling is great, no need to develop internally.

    "why is type checking the exception" - Don't know about Astral, but for Meta / Google, most everyone else doesn't design for the scale of their monorepos. Meta moved from SVN to Git to Mercurial, then forked Mercurial into [Sapling](https://sapling-scm.com/) because simple operations were too slow for the number of files in their repo, and how frequently they receive diffs.

    There are obvious safety benefits to type checking, but with how much Python code Meta has, mypy is not an option - it would take far too much time / memory to provide any value.

  • Seokar: Unleashing the Power of Advanced On-Page SEO Analysis in Python
    3 projects | dev.to | 23 May 2025
  • A note from our sponsor - SaaSHub
    www.saashub.com | 14 Jun 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic black repo stats
349
41,559
9.3
3 days ago

psf/black is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of black is Python.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that Python is
the 1st most popular programming language
based on number of references?