awesome-repositories.com
المدونة
awesome-repositories.com

اكتشف أفضل مستودعات المصادر المفتوحة باستخدام بحث مدعوم بالذكاء الاصطناعي.

استكشفعمليات بحث منسقةبدائل مفتوحة المصدربرمجيات ذاتية الاستضافةالمدونةخريطة الموقع
المشروعحولكيفية ترتيب النتائجالصحافةخادم MCP
قانونيالخصوصيةالشروط
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
google avatar

google/yapf

0
View on GitHub↗
13,978 نجوم·902 تفرعات·Python·Apache-2.0·10 مشاهدات

Yapf

YAPF هي أداة تنسيق كود Python وأداة امتثال للأسلوب. تعمل كمُنسق قائم على AST يستخدم أشجار بناء الجملة الملموسة لضمان الاتساق الهيكلي وعرض مرئي موحد عبر ملفات المصدر.

يستخدم المحرك مُحسِّن تخطيط قائماً على العقوبة لتحديد أفضل فواصل الأسطر عن طريق حساب تكاليف رقمية لخيارات التنسيق المختلفة. يستخدم معالج كود متعدد العمليات لتوزيع تنسيق ملفات متعددة عبر عدة أنوية CPU.

تغطي الأداة إعادة تنسيق الكود المصدري من خلال تعديلات الملف في مكانه، وتحليل الفرق، ومعالجة أجزاء الكود الجزئية. تتضمن نظام تكوين قائماً على القواعد لإدارة إعدادات الأسلوب المسبقة، وقواعد التخطيط، وإعدادات مستوى المشروع.

تشمل قدرات التكامل التحقق من امتثال الأسلوب لخطوط أنابيب التكامل المستمر، وأتمتة git hook، ووظيفة التنسيق عند الحفظ القائمة على المحرر.

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.

سجل النجوم

مخطط تاريخ النجوم لـ google/yapfمخطط تاريخ النجوم لـ google/yapf

بحث بالذكاء الاصطناعي

استكشف المزيد من المستودعات الرائعة

صف ما تحتاجه بلغة بسيطة — وسيقوم الذكاء الاصطناعي بترتيب آلاف المشاريع مفتوحة المصدر المنسقة حسب الصلة.

Start searching with AI

الأسئلة الشائعة

ما هي وظيفة google/yapf؟

YAPF هي أداة تنسيق كود Python وأداة امتثال للأسلوب. تعمل كمُنسق قائم على AST يستخدم أشجار بناء الجملة الملموسة لضمان الاتساق الهيكلي وعرض مرئي موحد عبر ملفات المصدر.

ما هي الميزات الرئيسية لـ google/yapf؟

الميزات الرئيسية لـ google/yapf هي: Python Code Formatters, Penalty-Based Layout Optimizers, Formatting Processors, AST-Based Formatters, Style Rule Configurations, Python Development Tools, Layout Rule Definitions, Source Code Formatters.

ما هي البدائل مفتوحة المصدر لـ google/yapf؟

تشمل البدائل مفتوحة المصدر لـ google/yapf: 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…

بدائل مفتوحة المصدر لـ Yapf

مشاريع مفتوحة المصدر مشابهة، مرتبة حسب عدد الميزات المشتركة مع Yapf.
  • psf/blackالصورة الرمزية لـ psf

    psf/black

    41,578عرض على 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
    عرض على GitHub↗41,578
  • rust-lang/rustfmtالصورة الرمزية لـ rust-lang

    rust-lang/rustfmt

    6,747عرض على 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
    عرض على GitHub↗6,747
  • hhatto/autopep8الصورة الرمزية لـ hhatto

    hhatto/autopep8

    4,665عرض على 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
    عرض على GitHub↗4,665
  • ambv/blackالصورة الرمزية لـ ambv

    ambv/black

    41,560عرض على 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
    عرض على GitHub↗41,560
عرض جميع البدائل الـ 30 لـ Yapf→