Open mknaranja opened 1 year ago
If I work with git worktrees, isort (in the pre-commit hook) gets confused and identifies first party library code in the worktree as third party library.
I use
- repo: https://github.com/PyCQA/isort rev: 5.10.1 hooks: - id: isort name: isort
What I do is:
git clone REPOSITORY.git cd REPOSITORY git worktree add ../REPOSITORY_WORKTREE BRANCH_WORKTREE cd ../REPOSITORY_WORKTREE pre-commit run --all
What it then does from:
import THIRDPARTY import OWNCODE
when I run pre-commit run --all is:
pre-commit run --all
import OWNCODE import THIRDPARTY
or
Any ideas on that?
If I work with git worktrees, isort (in the pre-commit hook) gets confused and identifies first party library code in the worktree as third party library.
I use
What I do is:
What it then does from:
when I run
pre-commit run --all
is:or