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

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
PyCQA avatar

PyCQA/isort

0
View on GitHub↗
isort.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.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

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.
6,948 stars·649 forks·Python·MIT·22 views

Star history

Star history chart for pycqa/isortStar history chart for pycqa/isort

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Projects sharing features with Isort

These projects share indexed features with Isort. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • astral-sh/ruffastral-sh avatar

    astral-sh/ruff

    48,177View on 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
    View on GitHub↗48,177
  • trivago/prettier-plugin-sort-importstrivago avatar

    trivago/prettier-plugin-sort-imports

    3,944View on 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
    View on GitHub↗3,944
  • psf/blackpsf avatar

    psf/black

    41,578View on 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
    View on GitHub↗41,578
  • nicklockwood/swiftformatnicklockwood avatar

    nicklockwood/SwiftFormat

    8,835View on 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
    View on GitHub↗8,835
Compare all 30 related projects→

Frequently asked questions

What does pycqa/isort do?

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.

What are the main features of pycqa/isort?

The main features of pycqa/isort are: Import Organizers, Import Sorters, Import Order Linters, Python Source Formatters, Import Order Validation, Layout Settings, IDE Integrated Tooling, IDE Plugins.

Which projects share features with pycqa/isort?

Projects with overlapping indexed features include: 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…