Skip to content

Cannot use isort with pre-commit hook #321

Answered by wjdp
wjdp asked this question in Q&A
Discussion options

You must be logged in to vote

Whoops, found the fix:

repos:
  - repo: https://github.com/akaihola/darker
    rev: 1.3.1
    hooks:
      - id: darker
        args: [--isort]
        additional_dependencies:
          - black~=21.8b0
          - isort~=5.9

Hopefully this helps others!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by akaihola
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #224 on March 02, 2022 20:42.