9 مستودعات
Tools for maintaining consistent code style and syntax.
Explore 9 awesome GitHub repositories matching part of an awesome list · Code Formatters. Refine with filters or upvote what's useful.
Ruff is a high-performance static analysis and code formatting tool designed for Python. Built in Rust, it functions as a comprehensive engine that scans source code to detect programming errors, security vulnerabilities, and deviations from established coding standards. By parsing source code into a structured tree representation, it provides both automated linting and style enforcement across entire projects. The tool distinguishes itself through its speed and deep integration into the development lifecycle. It utilizes parallelized file processing to maximize throughput on large codebases
Extremely fast Python linter and formatter.
هذا المشروع عبارة عن منسق كود حتمي لا يساوم لـ Python. يعمل عن طريق تحليل الكود المصدري إلى شجرة بناء جملة مجردة وإعادة إنشائه وفقاً لمجموعة صارمة ومحددة من قواعد الأسلوب. من خلال أتمتة عملية التنسيق، فإنه يلغي نقاشات الأسلوب اليدوية وعبء الإعداد، مما يضمن بقاء الكود متسقاً عبر المشاريع بأكملها بغض النظر عن الإدخال الأصلي. تتميز الأداة بتركيزها على السرعة والتكامل السلس في سير عمل التطوير. تستخدم التخزين المؤقت للملفات القائم على المحتوى والمعالجة المتوازية للحفاظ على أداء عالٍ في قواعد الكود الكبيرة، مع دعم خطافات التحكم في الإصدار لفرض اتساق الأسلوب قبل الالتزام بالكود. للحفاظ على تاريخ المشروع، توفر آليات لتجاهل التزامات معينة في تتبع اللوم للتحكم في الإصدار، مما يضمن أن تغييرات الأسلوب المؤتمتة لا تحجب التأليف الأصلي. إلى جانب ملفات المصدر القياسية، توسع الأداة قدراتها لتشمل دفاتر Jupyter، وملفات تعريف النوع، وأمثلة الكود المضمنة داخل التوثيق. توفر توافقاً واسعاً من خلال إضافات لمحررات النصوص الرئيسية وبيئات التطوير المتكاملة، بالإضافة إلى دعم بروتوكول خادم اللغة. تُدار الإعدادات من خلال ملفات على مستوى المشروع يتم اكتشافها تلقائياً داخل هرمية المجلدات، مما يسمح بسلوك متسق عبر بيئات التطوير المتنوعة.
Uncompromising and opinionated automatic code formatter.
YAPF هي أداة تنسيق كود Python وأداة امتثال للأسلوب. تعمل كمُنسق قائم على AST يستخدم أشجار بناء الجملة الملموسة لضمان الاتساق الهيكلي وعرض مرئي موحد عبر ملفات المصدر. يستخدم المحرك مُحسِّن تخطيط قائماً على العقوبة لتحديد أفضل فواصل الأسطر عن طريق حساب تكاليف رقمية لخيارات التنسيق المختلفة. يستخدم معالج كود متعدد العمليات لتوزيع تنسيق ملفات متعددة عبر عدة أنوية CPU. تغطي الأداة إعادة تنسيق الكود المصدري من خلال تعديلات الملف في مكانه، وتحليل الفرق، ومعالجة أجزاء الكود الجزئية. تتضمن نظام تكوين قائماً على القواعد لإدارة إعدادات الأسلوب المسبقة، وقواعد التخطيط، وإعدادات مستوى المشروع. تشمل قدرات التكامل التحقق من امتثال الأسلوب لخطوط أنابيب التكامل المستمر، وأتمتة git hook، ووظيفة التنسيق عند الحفظ القائمة على المحرر.
Configurable formatter that reformats code to follow best practices.
isort is a Python import sorter and code formatter that organizes import statements into alphabetical groups and sections. It functions as both a utility to automatically rearrange imports for a consistent layout and as a linting tool to verify if code follows specific ordering rules. The project provides configurable layout settings for indentation, wrapping modes, and section ordering to ensure compliance with project style guides and PEP 8. It allows for the exclusion of specific lines or files through inline comments and docstrings. The tool integrates into development workflows via IDE
Utility for automatically sorting and organizing import statements.
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
Official Rust code formatter.
autopep8 هو مصحح أسلوب كود Python ساكن ومنسق مصمم لإعادة كتابة الكود المصدري تلقائيًا للامتثال لدليل أسلوب PEP 8. يعمل كمنظف كود عودي يحدد ويصلح المسافات البادئة، والمسافات البيضاء، ومخالفات البنية عبر المشاريع بأكملها. تقوم الأداة بإعادة هيكلة هيكلية باستخدام تحويلات شجرة البنية المجردة لتنفيذ تغييرات غير المسافات البيضاء، مثل تقصير الأسطر الطويلة وتحسين اختبارات الهوية. تتضمن وضع إعادة هيكلة قوي لمخالفات الأسلوب المعقدة وتدعم التنسيق الانتقائي عبر علامات مضمنة لتعطيل التغييرات لكتل كود محددة. تشمل القدرات تصفية الإصلاح القائمة على القواعد لاستهداف أو تجاهل رموز خطأ محددة، وتنسيق نطاق الأسطر، وتوليد تقارير فرق الأسلوب. يمكن للنظام معالجة الملفات من خلال واجهة سطر أوامر مع اجتياز الدليل العودي وتعديل الملف في مكانه، أو دمجه برمجيًا عبر API. يمكن إدارة تفضيلات التنسيق ومجموعات القواعد من خلال ملفات التكوين العالمية أو المحلية.
Automatically adjusts code to conform to PEP 8 standards.
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
Pluggable and configurable code formatting platform.
docformatter
Formats docstrings to adhere to PEP 257 guidelines.
Prettier Rust is an opinionated code formatter that autocorrects bad syntax.
Prettier plugin for formatting Rust code.