pre commit hook that just runs the isort command.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 1 commit ahead of hvdklauw:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Adds pre-commit isort support through the simple isort command.

See also:

Using pre-commit-isort with pre-commit

Add this to your .pre-commit-config.yaml

-   repo: git://
    sha: ''  # Use the sha you want to point at
    -   id: isort
        - -c
        - -diff


Q: Why not use pre-commit-python-sorter? A: Because it gives me different results then the normal isort command line call.