我在项目中有几个应用程序
并且想要使用预提交挂钩,这将为特定应用程序运行测试
我的 .pre-commit-config.yaml 示例
repos:
- repo: local
hooks:
- id: test
name: test
# here I want to run test_app1 or test_app2 depending on
# changes in directories(or maybe pre-commit configs)
entry: make test
language: system
types: [python]