Skip to content

Fix lint command for git push hook

Tan Le requested to merge fix-git-push-hook into main

What does this merge request do and why?

This MR ensures we run the correct lint tasks for certain file changes, .py -> lint-code and .md -> lint-doc.

How to set up and validate locally

We can see the new pre-push Git hook by running the following command.

❯ lefthook run pre-push
╭─────────────────────────────────────╮
│ 🥊 lefthook v1.7.14  hook: pre-push │
╰─────────────────────────────────────╯

│  lint-doc (skip) no files for inspection
│  lint-code (skip) no files for inspection
                                      
  ────────────────────────────────────
summary: (done in 176.04 seconds)    

Merge request checklist

  • I've ran the affected pipeline(s) to validate that nothing is broken.
  • Tests added for new functionality. If not, please raise an issue to follow up.
  • Documentation added/updated, if needed.
Edited by Tan Le

Merge request reports

Loading