The workflow running pre-commit was installing from the requirements before installing pip install .[pre-commit]. The install from the requirements file was added because some hooks would fail due to import errors. The proper solution is simply to install all extras whose dependencies are imported during pre-commit checks.
Fixes #6366
The workflow running pre-commit was installing from the requirements before installing
pip install .[pre-commit]
. The install from the requirements file was added because some hooks would fail due to import errors. The proper solution is simply to install all extras whose dependencies are imported during pre-commit checks.