vimdoc icon indicating copy to clipboard operation
vimdoc copied to clipboard

Add .pre-commit-hooks.yaml

Open Freed-Wu opened this issue 3 years ago • 0 comments

According to https://pre-commit.com/#new-hooks, I write this hook and test it can work for me:

.pre-commit-config.yaml

  - repo: https://github.com/Freed-Wu/vimdoc
    rev: master
    hooks:
      - id: vimdoc

I advice to publish a new version because rev: master is fragile and pre-commit will warn due to it.

❯ git commit
[WARNING] The 'rev' field of repo 'https://github.com/Freed-Wu/vimdoc' appears to be a mutable reference (moving tag / branch).  Mutable references are never updated after first install and are not supported.  See https://pre-commit.com/#using-the-latest-version-for-a-repository for more details.  Hint: `pre-commit autoupdate` often fixes this.
[INFO] Initializing environment for https://github.com/Freed-Wu/vimdoc.
[INFO] Installing environment for https://github.com/Freed-Wu/vimdoc.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
...
Vint Vim script linting.......................................................Passed
vimdoc........................................................................Passed

Freed-Wu avatar Oct 15 '22 07:10 Freed-Wu