awesome-repositories.com
Blog
MCP
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
psf avatar

psf/black

0
View on GitHub↗
41,578 stars·2,779 forks·Python·MIT·14 vuesblack.readthedocs.io/en/stable↗

Black

Ce projet est un formateur de code déterministe et sans compromis pour Python. Il fonctionne en analysant le code source dans un arbre de syntaxe abstraite et en le régénérant selon un ensemble rigide et opinionné de règles de style. En automatisant le processus de formatage, il élimine les débats manuels sur le style et la surcharge de configuration, garantissant que le code reste cohérent sur l'ensemble des projets, indépendamment de l'entrée originale.

L'outil se distingue par son accent sur la vitesse et l'intégration transparente dans les flux de travail de développement. Il utilise la mise en cache de fichiers basée sur le contenu et le traitement parallèle pour maintenir des performances élevées sur de grandes bases de code, tout en prenant en charge les hooks de contrôle de version pour appliquer la cohérence du style avant que le code ne soit validé. Pour préserver l'historique du projet, il fournit des mécanismes pour ignorer des commits spécifiques dans le suivi des auteurs du contrôle de version, garantissant que les changements de style automatisés n'obscurcissent pas la paternité originale.

Au-delà des fichiers sources standard, le formateur étend ses capacités pour inclure les notebooks Jupyter, les stubs de type et les exemples de code intégrés dans la documentation. Il offre une large compatibilité via des plugins pour les principaux éditeurs de texte et environnements de développement intégrés, ainsi qu'un support pour le protocole de serveur de langage. La configuration est gérée via des fichiers au niveau du projet qui sont automatiquement découverts dans la hiérarchie des répertoires, permettant un comportement cohérent sur divers environnements de développement.

Features

  • Code Formatters - Automatically enforces a strict, uniform style across source files.
  • Python Development Tools - Provides an uncompromising, deterministic code formatter for the Python ecosystem.
  • Automated Formatting Frameworks - Enforces a consistent style across a codebase by automatically applying opinionated rules to source files.
  • Python Tooling - Applies opinionated style rules to Python source code, supporting customizable line lengths and target versions.
  • VS Code Extensions - Automates code styling within VS Code via extensions.
  • Parsers & Lexers - Parses and reconstructs source code according to predefined syntactic rules.
  • Code Analysis - Listed in the “Code Analysis” section of the Awesome Python awesome list.
  • Code Analysis and Quality - Uncompromising, opinionated code formatter.
  • Code Formatters - Uncompromising and opinionated automatic code formatter.
  • Outils de qualité de code - Formats Python code automatically.
  • Outils de développement - Uncompromising Python code formatter.
  • Linting And Formatting - Uncompromising Python code formatter.
  • Python Packages - Code formatting for Python.
  • Notebook Formatting Tools - Applies consistent styling to Jupyter notebook files.
  • Development Workflow Integrations - Connects automated styling tools directly into text editors and continuous integration pipelines.
  • Language Server Protocols - Connects code editors to formatting tools using standard protocols.
  • Git Hooks - Ensures only properly formatted code enters the repository history via pre-commit checks.
  • Import Sorters - Aligns import sorting behavior with project style guidelines.
  • Project Configuration Discovery - Defines project-specific formatting defaults and exclusion patterns in a configuration file that is automatically discovered.
  • Notebook Automation Tools - Integrates notebook file processing into development workflows.
  • Notebook Formatters - Applies consistent styling to interactive notebook files to improve readability.
  • Build Caches - Stores results on disk to skip unmodified files and speed up workflows.
  • Build Caching Systems - Stores hashes of processed files to skip redundant formatting operations and significantly improve performance on large codebases.
  • File Exclusion Rules - Allows preventing specific files or directories from being modified.
  • Line Wrapping Engines - Wraps long lines of code by applying uniform whitespace rules and bracket-based indentation.
  • Version Control Ignore Parsers - Automatically skips files listed in version control ignore files.
  • Version Control Utilities - Supports excluding specific commits from history tracking to preserve accurate code authorship during automated formatting.

Historique des stars

Graphique de l'historique des stars pour psf/blackGraphique de l'historique des stars pour psf/black

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Black

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Black.
  • astral-sh/ruffAvatar de astral-sh

    astral-sh/ruff

    48,177Voir sur GitHub↗

    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

    Rustlinterpep8python
    Voir sur GitHub↗48,177
  • astral-sh/tyAvatar de astral-sh

    astral-sh/ty

    17,287Voir sur GitHub↗

    This project is a high-performance static type checker and comprehensive development toolkit for Python. It functions as a core analysis engine that identifies type inconsistencies and enforces code correctness, while simultaneously providing a language server implementation to deliver real-time diagnostics and intelligence directly within development environments. The tool distinguishes itself through a parallelized execution engine that maximizes performance across large-scale codebases and monorepo structures. It supports gradual type adoption, allowing developers to integrate type checkin

    Python
    Voir sur GitHub↗17,287
  • koalaman/shellcheckAvatar de koalaman

    koalaman/shellcheck

    39,574Voir sur GitHub↗

    This project is a static analysis tool and linter designed to improve the quality, reliability, and portability of shell scripts. By performing deep structural analysis, it identifies common programming pitfalls, syntax errors, and security vulnerabilities before scripts are executed. It functions as an automated code reviewer that enforces best practices and helps developers maintain consistent, robust code across different operating environments. The tool distinguishes itself through its dialect-aware grammar resolution, which adapts its parsing logic based on the specific shell interpreter

    Haskellbashdeveloper-toolshaskell
    Voir sur GitHub↗39,574
  • viatsko/awesome-vscodeAvatar de viatsko

    viatsko/awesome-vscode

    28,754Voir sur GitHub↗

    This project is a curated directory of resources, extensions, and themes designed to extend the functionality of the Visual Studio Code editor. It serves as a comprehensive index for developers seeking to enhance their coding environment, offering a structured collection of community-driven tools that streamline development workflows and improve editor productivity. The directory distinguishes itself by organizing a vast ecosystem of plugins into logical categories, ranging from language-specific intelligence and version control integrations to advanced productivity utilities. It highlights t

    JavaScriptawesomeawesome-listlist
    Voir sur GitHub↗28,754
Voir les 30 alternatives à Black→

Questions fréquentes

Que fait psf/black ?

Ce projet est un formateur de code déterministe et sans compromis pour Python. Il fonctionne en analysant le code source dans un arbre de syntaxe abstraite et en le régénérant selon un ensemble rigide et opinionné de règles de style. En automatisant le processus de formatage, il élimine les débats manuels sur le style et la surcharge de configuration, garantissant que le code reste cohérent sur l'ensemble des projets, indépendamment de l'entrée originale.

Quelles sont les fonctionnalités principales de psf/black ?

Les fonctionnalités principales de psf/black sont : Code Formatters, Python Development Tools, Automated Formatting Frameworks, Python Tooling, VS Code Extensions, Parsers & Lexers, Code Analysis, Code Analysis and Quality.

Quelles sont les alternatives open-source à psf/black ?

Les alternatives open-source à psf/black incluent : astral-sh/ruff — Ruff is a high-performance static analysis and code formatting tool designed for Python. Built in Rust, it functions… astral-sh/ty — This project is a high-performance static type checker and comprehensive development toolkit for Python. It functions… koalaman/shellcheck — This project is a static analysis tool and linter designed to improve the quality, reliability, and portability of… viatsko/awesome-vscode — This project is a curated directory of resources, extensions, and themes designed to extend the functionality of the… pycqa/isort — isort is a Python import sorter and code formatter that organizes import statements into alphabetical groups and… google/yapf — YAPF is a Python code formatter and style compliance tool. It operates as an AST-based reformatter that uses concrete…