pre-commit
我在文件中有以下回购.pre-commit-config.yaml
- repo: local
hooks:
- id: check_pip
name: Check pip file
description: This hook checks if requirements-dev.txt is up to date.
language: system
entry: python -m scripts.check_pip_requirements
args: ["--compare"]
但它一直给我错误:
错误:无法识别的参数:.pre-commit-config.yaml
因为它将文件名作为参数传递给我的 python 脚本。我怎样才能防止这种情况?