Please update to a newer version of pre-commit (2.13.0 at the time of writing per https://github.com/pre-commit/pre-commit/releases). See https://github.com/taghash/docker-pre-commit/pull/1 for this.