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
ProjetServeur MCPÀ proposNotre méthodologiePresse
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
hhatto avatar

hhatto/autopep8

0
View on GitHub↗
4,665 stars·284 forks·Python·MIT·11 vuespypi.org/project/autopep8↗

Autopep8

autopep8 est un styler et formateur de code statique Python conçu pour réécrire automatiquement le code source afin de se conformer au guide de style PEP 8. Il fonctionne comme un nettoyeur de code récursif qui identifie et corrige les irrégularités d'indentation, d'espacement et de syntaxe à travers des projets entiers.

L'outil effectue un refactoring structurel en utilisant des transformations d'arbre de syntaxe abstraite pour exécuter des changements non liés aux espaces, tels que le raccourcissement des lignes longues et l'amélioration des tests d'identité. Il inclut un mode de refactoring agressif pour les violations de style complexes et prend en charge le formatage sélectif via des marqueurs inline pour désactiver les changements pour des blocs de code spécifiques.

Les capacités incluent le filtrage de corrections basé sur des règles pour cibler ou ignorer des codes d'erreur spécifiques, le formatage par plage de lignes et la génération de rapports de différences de style. Le système peut traiter des fichiers via une interface en ligne de commande avec parcours récursif de répertoires et modification de fichiers sur place, ou être intégré par programmation via une API.

Les préférences de formatage et les ensembles de règles peuvent être gérés via des fichiers de configuration globaux ou locaux.

Features

  • Python Code Formatters - Automatically reformats Python source code to comply with the PEP 8 style guide.
  • Python Source Formatters - Automatically rewrites Python source code to conform to PEP 8 by fixing indentation and whitespace.
  • Python Style Checkers - Ensures Python code adheres to the official PEP 8 style guide by fixing common syntax and layout irregularities.
  • Automated Lint Fixes - Identifies and automatically fixes style violations across entire directories to maintain a clean codebase.
  • AST-Based Refactoring - Performs structural refactoring using abstract syntax tree transformations to execute non-whitespace changes.
  • Source Code Formatting - Provides a programmatic API for formatting Python source strings to ensure consistent styling and indentation.
  • PEP 8 Rule Detection - Uses a static analysis engine to identify style violations by matching source code against predefined PEP 8 rules.
  • Python Static Analyzers - Identifies and fixes indentation, whitespace, and syntax irregularities using static analysis.
  • AST-Based Source Transformations - Implements structural code changes, such as identity test improvements, by manipulating the Python abstract syntax tree.
  • Automated Code Refactoring - Applies structural changes to Python code, such as improving identity tests, to enhance overall quality.
  • In-Place File Mutators - Overwrites original source files directly on disk with formatted content instead of using standard output.
  • Style Difference Reports - Generates difference reports showing required style changes without modifying the actual source files.
  • Tag-Based Rule Filtering - Targets specific subsets of style errors or ignores particular rules using error codes.
  • Recursive Directory Processing - Functions as a recursive code cleaner that processes files across entire project directories.
  • Style Compliance Reporting - Produces reports identifying differences between the current code and the PEP 8 style guide.
  • Aggressive Refactoring Modes - Includes an aggressive refactoring mode for resolving complex style violations and shortening long lines.
  • Recursive Directory Traversers - Walks through folder hierarchies to locate and process all Python source files within a project path.
  • Code Formatters - Automatically adjusts code to conform to PEP 8 standards.

Historique des stars

Graphique de l'historique des stars pour hhatto/autopep8Graphique de l'historique des stars pour hhatto/autopep8

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 à Autopep8

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Autopep8.
  • realpython/materialsAvatar de realpython

    realpython/materials

    5,173Voir sur GitHub↗

    This project is a comprehensive collection of Python programming education materials, including tutorials, exercises, and curated code samples. It serves as a learning curriculum and software engineering toolkit, utilizing Jupyter Notebooks to combine executable code with descriptive educational text. The repository provides practical implementation guides for building large language model applications, such as retrieval-augmented generation systems, stateful AI agents, and machine learning workflows. It distinguishes itself by offering a structured approach to agentic coding workflows, cover

    Jupyter Notebook
    Voir sur GitHub↗5,173
  • google/yapfAvatar de google

    google/yapf

    13,978Voir sur 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
    Voir sur GitHub↗13,978
  • ansible/ansible-lintAvatar de ansible

    ansible/ansible-lint

    3,876Voir sur GitHub↗

    ansible-lint is a static code analysis tool and linter designed to identify syntax errors and best practice violations within Ansible playbooks and roles. It functions as a quality gate for automation pipelines, scanning configuration files and scripts without executing the code to ensure reliability and consistency. The project distinguishes itself by acting as an automated code formatter that can correct identified linting issues and reformat files to meet community standards. It also serves as a dependency manager, automatically detecting and installing required roles and collections from

    Pythonansibleansible-dev-toolsansible-lint
    Voir sur GitHub↗3,876
  • squizlabs/php_codesnifferAvatar de squizlabs

    squizlabs/PHP_CodeSniffer

    10,771Voir sur GitHub↗

    PHP_CodeSniffer is a static analysis tool, coding standard linter, and command-line validator for PHP. It scans files and directories to detect and report formatting errors and language-specific coding violations without executing the code. The project functions as an automated code formatter capable of correcting detected style and formatting violations to bring source code into compliance with defined standards. It uses token-based lexical analysis to match code patterns against rule sets, ensuring consistency across a codebase. The tool provides comprehensive capabilities for recursive fi

    PHPautomationclicoding-standards
    Voir sur GitHub↗10,771
Voir les 30 alternatives à Autopep8→

Questions fréquentes

Que fait hhatto/autopep8 ?

autopep8 est un styler et formateur de code statique Python conçu pour réécrire automatiquement le code source afin de se conformer au guide de style PEP 8. Il fonctionne comme un nettoyeur de code récursif qui identifie et corrige les irrégularités d'indentation, d'espacement et de syntaxe à travers des projets entiers.

Quelles sont les fonctionnalités principales de hhatto/autopep8 ?

Les fonctionnalités principales de hhatto/autopep8 sont : Python Code Formatters, Python Source Formatters, Python Style Checkers, Automated Lint Fixes, AST-Based Refactoring, Source Code Formatting, PEP 8 Rule Detection, Python Static Analyzers.

Quelles sont les alternatives open-source à hhatto/autopep8 ?

Les alternatives open-source à hhatto/autopep8 incluent : realpython/materials — This project is a comprehensive collection of Python programming education materials, including tutorials, exercises,… google/yapf — YAPF is a Python code formatter and style compliance tool. It operates as an AST-based reformatter that uses concrete… ansible/ansible-lint — ansible-lint is a static code analysis tool and linter designed to identify syntax errors and best practice violations… squizlabs/php_codesniffer — PHP_CodeSniffer is a static analysis tool, coding standard linter, and command-line validator for PHP. It scans files… google/gts — gts provides standardized utilities for project bootstrapping and the application of consistent linting and formatting… ambv/black — Black is a deterministic Python code formatter and style guide enforcer. It automatically reformats source code and…