尝试使用预提交来设置预推钩子

时间:2019-11-06 10:19:40

标签: push pre-commit.com

我正在尝试使用预提交https://pre-commit.com/来设置一个预推钩子 当我做一个预提交的钩子时,它像提交所有检查之前一样工作正常,但是在推送的情况下,没有钩子 这就是我的.pre-commit-config-yaml在推送情况下的样子

-   repo: local
    hooks:
    -   id: Test
        name: Test
        stages: [push]
        entry: python3 test.py
        language: system
        types: [python]

有人知道自己在做什么错吗?

0 个答案:

没有答案
相关问题