Replies: 3 comments 2 replies
-
It only works if the job name doesn't refer to a Git stage. But then I don't have the guarantee these hooks are run. |
Beta Was this translation helpful? Give feedback.
-
By default Do you want pylint to run always before push? |
Beta Was this translation helpful? Give feedback.
-
A workaround to include hooks that don't take a list of files in a quasi-pre-push hook, DRY: ---
pre-push:
parallel: true
commands: &pre-push
prettier:
glob: '*.{css,js,html,jsx,md,toml,ts,yml,yaml}'
run: prettier --ignore-unknown --list-different {all_files}
pre-push-plus:
commands:
<<: *pre-push
pylint:
run: pylint --enable-all-extensions --output-format=colorized src/
creosote:
run: creosote --exclude-deps python-multipart uvicorn --verbose
gitdiffcheck:
run: git diff --check |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions