Skip to content

Local: Make pre-commit run from local environment

Daniel Cacabelos requested to merge fix-precommit-hooks into main

Pre-commit typically creates its own environments based on the versions provided in pre-commit yaml file. This means that the packages installed from requirement-dev.txt are not actually used.

This approach also forces us to duplicate package versioning in both pre-commit's yaml and requirements-dev.txt. Since dependabot does not support pre-commit configuration files, the duplication entails a considerable overhead.

This commit modifies pre-commit's config to use the local environment instead of spwaning one environment per hook.

Merge request reports