Skip to content

Moonwalker7/Git-Hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Git-Hooks

Config for setting up pre-commit hooks for your projects/teams.

A python package called pre-commit to create and use pre-commit hooks and the same could be used for projects of any tech stack

To setup install the package

  • 'pip install pre-commit'
  • Create a .pre-commit-config.yaml file within your project. This file contains the pre-commit hooks you want to run every time before you commit(shared above)
  • 'pre-commit install'
  • When committing the code, you can see the hook being triggered.
  • It could also be run as 'pre-commit run --all-files'

References:

  1. https://githooks.com/
  2. https://github.com/pre-commit/pre-commit-hooks
  3. https://towardsdatascience.com/pre-commit-hooks-you-must-know-ff247f5feb7e

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages