Skip to content

Commit

Permalink
build: workaround pre-commit issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoshkin committed Feb 6, 2024
1 parent 8f24631 commit d3cd339
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions make/pre-commit.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ pre-commit: ; $(info $(M) running pre-commit)
ifeq ($(wildcard $(PRE_COMMIT_CONFIG_FILE)),)
$(error Cannot find pre-commit config file $(PRE_COMMIT_CONFIG_FILE). Specify the config file via PRE_COMMIT_CONFIG_FILE variable)
endif
# Set pip version to work around https://github.com/pypa/pip/issues/12372
env VIRTUALENV_PIP=24.0 pre-commit install-hooks
env SKIP=$(SKIP) pre-commit run -a --show-diff-on-failure --config $(PRE_COMMIT_CONFIG_FILE)
git fetch origin main
pre-commit run --hook-stage manual gitlint-ci

0 comments on commit d3cd339

Please sign in to comment.