awesome-repositories.com
Blog
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
·
PyCQA avatar

PyCQA/isort

0
View on GitHub↗
6,948 stars·649 forks·Python·MIT·9 vuesisort.readthedocs.io↗

Isort

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 and editor plugins and functions as a pre-commit hook for quality assurance within git workflows. It includes syntax validation to ensure that modifications to source code do not introduce errors.

Features

  • Import Organizers - Automatically sorts, cleans, and organizes Python import statements to maintain project consistency.
  • Import Sorters - Automatically organizes and sorts Python import statements using configurable ordering and wrapping styles.
  • Import Order Linters - Verifies if Python import statements follow defined ordering rules and reports discrepancies.
  • Python Source Formatters - Reformats Python source code imports to comply with project style guides and PEP 8.
  • Import Order Validation - Functions as a linting tool to verify if code follows defined import ordering rules without altering the files.
  • Layout Settings - Offers customizable indentation, wrapping modes, and section ordering to comply with specific project style guides.
  • IDE Integrated Tooling - Embeds import sorting capabilities directly into the development environment to reduce context switching.
  • IDE Plugins - Integrates with various text editors and IDEs to automate import sorting during the development process.
  • AST-Based Analysis - Implements AST parsing to precisely target import statements without altering unrelated source code.
  • Pre-commit Hooks - Provides integration for running import verification as part of a pre-commit quality workflow.
  • Configuration-Driven Sorting - Determines import ordering based on a flexible hierarchy of project-specific settings and PEP 8 guides.
  • Sequential Formatting Passes - Applies a series of discrete transformation rules through sequential passes over the source text.
  • Syntax Validation Linters - Verifies that no syntax errors were introduced by running modified code through the Python parser.
  • Code Analysis - Listed in the “Code Analysis” section of the Awesome Python awesome list.
  • Code Analysis and Quality - Utility for automatically sorting and organizing imports.
  • Code Formatters - Utility for automatically sorting and organizing import statements.

Historique des stars

Graphique de l'historique des stars pour pycqa/isortGraphique de l'historique des stars pour pycqa/isort

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

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Isort.
  • 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
  • trivago/prettier-plugin-sort-importsAvatar de trivago

    trivago/prettier-plugin-sort-imports

    3,944Voir sur GitHub↗

    This project is a Prettier plugin designed to alphabetize, group, and format module import statements in JavaScript and TypeScript files. It functions as an automated import organizer that ensures consistent declaration order and spacing across a project. The plugin uses custom regular expression patterns to sequence dependency imports into logical groups, allowing for the separation of internal and external modules. It supports the preservation of side-effect imports and provides the ability to sort individual named members within a single declaration by string length or alphabetization. Us

    TypeScripthacktoberfestimportjavascript
    Voir sur GitHub↗3,944
  • psf/blackAvatar de psf

    psf/black

    41,578Voir sur 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
    Voir sur GitHub↗41,578
  • nicklockwood/swiftformatAvatar de nicklockwood

    nicklockwood/SwiftFormat

    8,835Voir sur GitHub↗

    SwiftFormat is a tool for the Swift language that functions as a code formatter, linter, and refactoring utility. It automatically applies consistent style rules and visual formatting to source files to ensure a uniform appearance across a project. The project differentiates itself by providing both a command-line interface for batch processing and an Xcode extension for integration directly into the development environment. It includes specialized capabilities for modernizing legacy API usage, simplifying language constructs, and inferring formatting options by analyzing an existing codebase

    Swift
    Voir sur GitHub↗8,835
Voir les 30 alternatives à Isort→

Questions fréquentes

Que fait pycqa/isort ?

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.

Quelles sont les fonctionnalités principales de pycqa/isort ?

Les fonctionnalités principales de pycqa/isort sont : Import Organizers, Import Sorters, Import Order Linters, Python Source Formatters, Import Order Validation, Layout Settings, IDE Integrated Tooling, IDE Plugins.

Quelles sont les alternatives open-source à pycqa/isort ?

Les alternatives open-source à pycqa/isort incluent : astral-sh/ruff — Ruff is a high-performance static analysis and code formatting tool designed for Python. Built in Rust, it functions… trivago/prettier-plugin-sort-imports — This project is a Prettier plugin designed to alphabetize, group, and format module import statements in JavaScript… psf/black — This project is an uncompromising, deterministic code formatter for Python. It functions by parsing source code into… nicklockwood/swiftformat — SwiftFormat is a tool for the Swift language that functions as a code formatter, linter, and refactoring utility. It… hhatto/autopep8 — autopep8 is a Python static code styler and formatter designed to automatically rewrite source code to comply with the… checkstyle/checkstyle — Checkstyle is a Java static analysis tool and linter designed to identify and enforce coding standards and best…