Skip to content

About

Validation repo for testing setup-hooks without a real pre-commit hook (HEAD).

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Organisation Logo

Test Pre-Commit 1

Validation pre-commit source for setup-hooks. Use this repo to try the installer without a production hook. The script at src/pre-commit only prints hello.

Examples pin this source with version: HEAD (current default branch).

Validate setup-hooks

In a git working tree, add the YAML below, then run the CLI.

# hooks/pre-commit-config.yml
- name: Hello one
  filename: hello-one
  url: https://github.com/lupaxa-git-hooks-toolbox/test-pre-commit-1
  version: HEAD
# hooks/multiplexer-config.yml
url: https://github.com/lupaxa-git-hooks-toolbox/git-hooks-multiplexer
version: HEAD
python -m pip install lupaxa-setup-git-hooks
setup-hooks

That writes hooks/pre-commit/01-hello-one and installs the multiplexer. A later git commit prints hello. Guide: Setup Git Hooks.

The Lupaxa Project Footer

About

Validation repo for testing setup-hooks without a real pre-commit hook (HEAD).

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages