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
·
google avatar

google/yapf

0
View on GitHub↗
13,978 estrellas·902 forks·Python·Apache-2.0·11 vistas

Yapf

YAPF es un formateador de código de Python y una herramienta de cumplimiento de estilo. Opera como un reformateador basado en AST que utiliza árboles de sintaxis concretos para garantizar la consistencia estructural y una presentación visual uniforme en todos los archivos fuente.

El motor utiliza un optimizador de diseño basado en penalizaciones para determinar los mejores saltos de línea calculando costos numéricos para diferentes opciones de formato. Emplea un procesador de código multiproceso para distribuir el formato de múltiples archivos a través de varios núcleos de CPU.

La herramienta cubre el reformateo del código fuente a través de modificaciones de archivos in-place, análisis de diferencias y el procesamiento de fragmentos de código parciales. Incluye un sistema de configuración basado en reglas para gestionar preajustes de estilo, reglas de diseño y configuraciones a nivel de proyecto.

Las capacidades de integración incluyen la verificación del cumplimiento de estilo para pipelines de integración continua, automatización de git hooks y funcionalidad de formato al guardar basada en el editor.

Features

  • Python Code Formatters - Reformats Python source code to adhere to defined style guides for consistent visual presentation.
  • Penalty-Based Layout Optimizers - Implements a penalty-based layout optimizer to determine the most aesthetically pleasing line breaks based on numerical costs.
  • Formatting Processors - Employs a recursive descent pattern to traverse the code tree and determine the optimal layout of nested elements.
  • AST-Based Formatters - Uses concrete syntax tree analysis to restructure code layout while preserving functional logic.
  • Style Rule Configurations - Provides a rule-based configuration system for defining how specific Python constructs should be formatted.
  • Python Development Tools - Provides productivity utilities for the Python ecosystem, including automatic code reformatting.
  • Layout Rule Definitions - Defines specific layout rules for indentation and line length to ensure visual consistency.
  • Source Code Formatters - Automatically reformats Python source code to adhere to a standardized style guide for consistent presentation.
  • Style Compliance Checkers - Includes a check-only mode to verify style compliance without modifying files, suitable for continuous integration pipelines.
  • Project Configuration Management - Manages formatting and ignore configurations at the project level to ensure consistency across teams.
  • Concrete Syntax Tree Transformations - Reconstructs source code by modifying concrete syntax tree representations while preserving the original structural integrity.
  • Formatting Behavior Adjustments - Adjusts the layout behavior for Python expressions, lists, and dictionaries using style flags and penalties.
  • Git Style Verifiers - Verifies style compliance within git diffs and automates formatting during commit events.
  • In-Place File Mutators - Supports updating source files directly on disk with the reformatted version.
  • Large-Scale Style Maintenance - Maintains consistent formatting and style across extremely large software repositories using parallel processing.
  • Concrete Syntax Tree Generators - Uses concrete syntax trees to maintain high fidelity to the original source code structure during the formatting process.
  • Continuous Integration Checks - Executes formatting checks within automated pipelines to identify style violations during pull requests.
  • Formatting Exclusion Markers - Provides inline markers that allow developers to exclude specific blocks of code from being reformatted.
  • Multi-Process Parallelism - Utilizes multi-process parallelism to distribute the formatting workload across multiple CPU cores for faster execution on large projects.
  • Partial Fragment Formatting - Processes specific line ranges or fragments of code to support targeted formatting updates.
  • Parallel Processing - Improves performance by distributing the formatting of multiple Python files across several CPU cores.
  • Style Presets - Provides named style presets and configuration files to control code indentation and spacing.
  • Textual Difference Analysis - Identifies textual differences between the current source and the proposed formatted version without applying changes.
  • Code Formatters - Configurable formatter that reformats code to follow best practices.

Historial de estrellas

Gráfico del historial de estrellas de google/yapfGráfico del historial de estrellas de google/yapf

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 Yapf

Proyectos open-source similares, clasificados según cuántas características comparten con Yapf.
  • psf/blackAvatar de psf

    psf/black

    41,578Ver en GitHub↗

    This project is an uncompromising, deterministic code formatter for Python. It functions by parsing source code into an abstract syntax tree and regenerating it according to a rigid, opinionated set of style rules. By automating the formatting process, it eliminates manual style debates and configuration overhead, ensuring that code remains consistent across entire projects regardless of the original input. The tool distinguishes itself through its focus on speed and seamless integration into development workflows. It utilizes content-based file caching and parallel processing to maintain hig

    Pythonautopep8codecodeformatter
    Ver en GitHub↗41,578
  • rust-lang/rustfmtAvatar de rust-lang

    rust-lang/rustfmt

    6,747Ver en GitHub↗

    rustfmt is a Rust code formatter that operates as a Cargo subcommand, applying consistent formatting to Rust source files according to official style guidelines. It parses source code into a syntax tree, applies formatting rules to tree nodes, and pretty-prints the result back to text, with support for TOML-driven configuration that allows per-project style customization. The formatter is edition-aware, automatically selecting formatting rules based on the Rust edition specified in the project, and supports a style edition override that decouples formatting rules from the Rust edition used fo

    Rustcodeformatterformatterrust
    Ver en GitHub↗6,747
  • hhatto/autopep8Avatar de hhatto

    hhatto/autopep8

    4,665Ver en GitHub↗

    autopep8 is a Python static code styler and formatter designed to automatically rewrite source code to comply with the PEP 8 style guide. It functions as a recursive code cleaner that identifies and fixes indentation, whitespace, and syntax irregularities across entire projects. The tool performs structural refactoring using abstract syntax tree transformations to execute non-whitespace changes, such as shortening long lines and improving identity tests. It includes an aggressive refactoring mode for complex style violations and supports selective formatting via inline markers to disable chan

    Python
    Ver en GitHub↗4,665
  • ambv/blackAvatar de ambv

    ambv/black

    41,560Ver en GitHub↗

    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 s

    Python
    Ver en GitHub↗41,560
Ver las 30 alternativas a Yapf→

Preguntas frecuentes

¿Qué hace google/yapf?

YAPF es un formateador de código de Python y una herramienta de cumplimiento de estilo. Opera como un reformateador basado en AST que utiliza árboles de sintaxis concretos para garantizar la consistencia estructural y una presentación visual uniforme en todos los archivos fuente.

¿Cuáles son las características principales de google/yapf?

Las características principales de google/yapf son: Python Code Formatters, Penalty-Based Layout Optimizers, Formatting Processors, AST-Based Formatters, Style Rule Configurations, Python Development Tools, Layout Rule Definitions, Source Code Formatters.

¿Qué alternativas de código abierto existen para google/yapf?

Las alternativas de código abierto para google/yapf incluyen: psf/black — This project is an uncompromising, deterministic code formatter for Python. It functions by parsing source code into… rust-lang/rustfmt — rustfmt is a Rust code formatter that operates as a Cargo subcommand, applying consistent formatting to Rust source… hhatto/autopep8 — autopep8 is a Python static code styler and formatter designed to automatically rewrite source code to comply with the… ambv/black — Black is a deterministic Python code formatter and style guide enforcer. It automatically reformats source code and… google/google-java-format — google-java-format is a Java code formatter and style enforcement tool. It reformats Java source code to adhere to a… google/vim-codefmt — Vim-codefmt is a plugin for the Vim text editor that automates source code formatting by integrating external…