Pre-commit hooks claim files are modified but no changes are detected by Git

Ice Panda
2 min readOct 16, 2020

Introduction

I recently started using pre-commit hooks to format code before committing changes to Git repositories. Most of the time it works fine, but occasionally it shows some weird behavior. The hooks detected issues and made change but git status showed no changes were made.

seed isort known_third_party.............................................Passed
isort....................................................................Failed

--

--

Ice Panda

Software engineer during the day and write at night.