awesome-repositories.com
Blog
awesome-repositories.com

Descubre los mejores repositorios open-source con nuestra búsqueda potenciada por IA.

ExplorarBúsquedas curadasAlternativas open-sourceSoftware autohospedableBlogMapa del sitio
ProyectoAcerca deCómo clasificamosPrensaServidor MCP
Aviso legalPrivacidadTérminos
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
ambv avatar

ambv/black

0
View on GitHub↗
41,560 estrellas·2,779 forks·Python·MIT·7 vistasblack.readthedocs.io/en/stable↗

Black

Black is a deterministic Python code formatter and style guide enforcer. It automatically reformats source code and Jupyter notebook cells into a consistent style to eliminate manual debates over code layout and reduce noise in version control diffs.

The tool uses abstract syntax tree analysis to restructure code layout while ensuring that the underlying functional logic remains unchanged. It employs a deterministic engine that produces a single consistent output for any given input, removing subjective styling choices.

The system provides capabilities for in-place file mutation, automated style enforcement across entire projects, and the use of configuration files to define line lengths and excluded file patterns. It further verifies code integrity by comparing the abstract syntax trees of the original and reformatted code to ensure functional equivalence.

Features

  • Deterministic Formatters - Employs a deterministic engine that produces a single consistent output for any given input.
  • Code Formatting - Provides automatic code formatting and style enforcement specifically for the Python language.
  • AST Transformation Tools - Uses abstract syntax tree analysis to restructure code layout without altering functional logic.
  • AST-Based Formatters - Analyzes the Python abstract syntax tree to ensure functional logic remains unchanged while altering code layout.
  • Equivalence Verifiers - Compares the AST of original and reformatted code to ensure no functional changes were introduced.
  • Code Formatters - Automatically adjusts Python source code structure and style to maintain a consistent, deterministic appearance.
  • Concrete Syntax Tree Generators - Utilizes concrete syntax trees to ensure formatting preserves all necessary structural information during the round-trip.
  • Python Source Formatters - Automatically reformats Python source files in place to ensure consistency with a standardized style guide.
  • Equivalence Verifiers - Verifies that generated code maintains functional and structural parity with the original source using AST comparison.
  • Coding Standards Enforcement - Provides an automated system for maintaining project guidelines and eliminating debates over code layout.
  • Deterministic Style Standards - Enforces a deterministic style to ensure a uniform appearance and reduce noise during version control reviews.
  • Style Guide Enforcers - Eliminates manual style debates by enforcing a single, deterministic standard across all Python files.
  • Notebook Formatters - Applies consistent styling and formatting to interactive Jupyter notebook files.
  • Notebook Formatting Tools - Applies consistent code formatting to individual cells within Jupyter notebook files.
  • In-Place File Mutators - Writes reformatted content directly back to the source files to update the codebase on disk.
  • Style-Based Diff Cleanup - Removes stylistic noise from git diffs by ensuring all code follows a deterministic and uniform format.
  • Formatter Rule Schemas - Provides the ability to define project-specific defaults and file patterns via a configuration file.
  • Formatter Configurations - Supports external configuration files to define project-specific line lengths and excluded patterns.
  • Code Editors and IDEs - Uncompromising automatic formatter for Python source code.

Historial de estrellas

Gráfico del historial de estrellas de ambv/blackGráfico del historial de estrellas de ambv/black

Búsqueda con IA

Explora más repositorios increíbles

Describe lo que necesitas en lenguaje sencillo: la IA clasifica miles de proyectos open-source curados por relevancia.

Start searching with AI

Alternativas open-source a Black

Proyectos open-source similares, clasificados según cuántas características comparten con Black.
  • dprint/dprintAvatar de dprint

    dprint/dprint

    3,795Ver en GitHub↗

    dprint is a multi-language code formatter that applies consistent styling across various programming languages using a pluggable architecture. It functions as a unified project style management tool, a command-line interface for continuous integration style enforcement, and a Language Server Protocol implementation for real-time formatting in editors. The project is distinguished by a WebAssembly-based plugin system that loads sandboxed formatting logic from URLs or file paths. It further extends its capabilities through a process-based tool integration that wraps external command-line interf

    Rustformatter
    Ver en GitHub↗3,795
  • raywenderlich/swift-style-guideAvatar de raywenderlich

    raywenderlich/swift-style-guide

    13,173Ver en GitHub↗

    This project is a collection of Swift coding standards and static analysis rules designed to ensure consistency across Swift projects. It provides a defined set of naming conventions and structural guidelines to maintain a shared style for teams. The repository centers on a SwiftLint configuration used to automate the detection and correction of style violations in source code. This configuration enables automated style enforcement, ensuring that code adheres to organizational standards without requiring manual review. The guidelines cover the standardization of code formatting, naming, and

    Ver en GitHub↗13,173
  • xojs/xoAvatar de xojs

    xojs/xo

    7,977Ver en GitHub↗

    xo is a zero-configuration linting tool for JavaScript and TypeScript. It functions as a wrapper for the ESLint engine, providing a set of strict default rules and static analysis to enforce professional coding standards without requiring manual configuration files. The tool distinguishes itself by providing a zero-config runtime that automatically determines parser settings and linting rules at execution time. It includes a code style formatter to standardize indentation and syntax across all project files. The project covers automated error correction and source code formatting to eliminat

    TypeScript
    Ver en GitHub↗7,977
  • google/yapfAvatar de google

    google/yapf

    13,978Ver en GitHub↗

    YAPF is a Python code formatter and style compliance tool. It operates as an AST-based reformatter that uses concrete syntax trees to ensure structural consistency and a uniform visual presentation across source files. The engine utilizes a penalty-based layout optimizer to determine the best line breaks by calculating numerical costs for different formatting choices. It employs a multi-process code processor to distribute the formatting of multiple files across several CPU cores. The tool covers source code reformatting through in-place file modifications, difference analysis, and the proce

    Python
    Ver en GitHub↗13,978
Ver las 30 alternativas a Black→

Preguntas frecuentes

¿Qué hace ambv/black?

Black is a deterministic Python code formatter and style guide enforcer. It automatically reformats source code and Jupyter notebook cells into a consistent style to eliminate manual debates over code layout and reduce noise in version control diffs.

¿Cuáles son las características principales de ambv/black?

Las características principales de ambv/black son: Deterministic Formatters, Code Formatting, AST Transformation Tools, AST-Based Formatters, Equivalence Verifiers, Code Formatters, Concrete Syntax Tree Generators, Python Source Formatters.

¿Qué alternativas de código abierto existen para ambv/black?

Las alternativas de código abierto para ambv/black incluyen: dprint/dprint — dprint is a multi-language code formatter that applies consistent styling across various programming languages using a… raywenderlich/swift-style-guide — This project is a collection of Swift coding standards and static analysis rules designed to ensure consistency across… xojs/xo — xo is a zero-configuration linting tool for JavaScript and TypeScript. It functions as a wrapper for the ESLint… google/yapf — YAPF is a Python code formatter and style compliance tool. It operates as an AST-based reformatter that uses concrete… psf/black — This project is an uncompromising, deterministic code formatter for Python. It functions by parsing source code into… bbatsov/rubocop — RuboCop is a static code analyzer and linter for Ruby. It functions as a static analysis tool designed to detect…