Used isort for a while, but now it starts complaining about the fact that a directory is a directory??
venv/bin/isort --diff --check src tests
WARNING: Unable to parse file src due to [Errno 21] Is a directory: '[...]/src'
WARNING: Unable to parse file tests due to [Errno 21] Is a directory: '[...]/tests'
Are there more than one variants of isort??
Try to add
-rc
/--recursive
flags.So in your case the following line should work (
--check
was replaced with--check-only
).You can use even shorter form.
Check this comment from GitHub repo.