We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using a pre-commit config of
repos: - repo: https://github.com/akaihola/darker rev: 1.3.1 hooks: - id: darker args: [--isort]
Yields:
$ pre-commit run [WARNING] Unstaged files detected. [INFO] Stashing unstaged files to /home/will/.cache/pre-commit/patch1634135700. darker...................................................................Failed - hook id: darker - exit code: 1 Please run `pip install darker[isort]` to use the `--isort` option. [INFO] Restored changes from /home/will/.cache/pre-commit/patch1634135700.
It seems darker[isort] is not installed in the environment that pre-commit creates for darker, is there a way to make this work?
darker[isort]
The text was updated successfully, but these errors were encountered:
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!
Sorry, something went wrong.
Thanks @wjdp for pointing this out! Is there something to improve in the documentation to help others not hit the same problem?
args
No branches or pull requests
Using a pre-commit config of
Yields:
It seems
darker[isort]
is not installed in the environment that pre-commit creates for darker, is there a way to make this work?The text was updated successfully, but these errors were encountered: