refined-addition-53644
04/06/2022, 7:50 AMupdate-build-files
to their git hooks? I want them to run like any other pre-commit hook.
I have already connected pants to git hooks thanks to @wide-midnight-78598curved-television-6568
04/06/2022, 10:02 AMupdate-build-files —check
to our pre commit hooks at work.refined-addition-53644
04/06/2022, 10:19 AMcurved-television-6568
04/06/2022, 10:55 AM$ cat .pre-commit-config.yaml
repos:
- repo: local
hooks:
- id: lint-check-test
name: Checking source files and running tests
entry: "./pants lint check test ::"
language: script
types: [python]
pass_filenames: false
verbose: true
- id: lint-build-files
name: Checking BUILD files
entry: "./pants --no-pantsd update-build-files --check"
language: script
files: BUILD
pass_filenames: false
verbose: true
curved-television-6568
04/06/2022, 10:56 AMlint check test
step, you could have pass_filenames: true
and omit the ::
spec, but I have fmt issues then: https://github.com/pantsbuild/pants/pull/15002wide-midnight-78598
04/06/2022, 3:13 PMwide-midnight-78598
04/06/2022, 4:47 PM