/git-pre-commit-push-example

example usage of pre-commit and pre-push git hooks

Primary LanguagePython

Problem Statement

There is no ruler in the universe of Southeros and pandemonium reigns. Shan, the gorilla king of the Space kingdom wants to rule all Six Kingdoms in the universe of Southeros. He needs the support of 3 more kingdoms to be the ruler.
There is no ruler today and pandemonium reigns. Shan is sending secret messages to all kingdoms to ask for their allegiance. Your coding challenge is to help King Shan send the right message to the right kingdom to win them over.
Each kingdom has their own emblem and the secret message should contain the letters of the emblem in it. Once Shan has the support of 3 other kingdoms, he is the ruler!
Refer: https://www.geektrust.in/coding-problem/backend/tame-of-thrones

Requirements

Python >= 3.8
Install external modules using pip install -r requirements.txt in a virtual environment
Install pre-commit hooks using pre-commit install
Install pre-push hooks using pre-commit install -t pre-push

Usage

Running without unittests python -m geektrust "absolute/relative path to input file"
Running with unittests python build.py "absolute/relative path to input file"
Run all pre-commits manually pre-commit run --all-files