This repository contains a simple Flask application with pre-commit hooks to maintain code quality.
- Click the Fork button on the top-right corner of this repository.
- This creates a copy of the repository under your GitHub account.

# Replace <your-github-username> with your GitHub username
git clone https://github.com/<your-github-username>/ci-cd-primer.git
cd your-repoMake sure you have Python installed, then run:
pip install pre-commitRun the following command inside the cloned repository:
pre-commit installThis sets up pre-commit hooks to automatically check your code when you make a commit.
To verify that the hooks are working, run:
pre-commit run --all-filesThis will run all checks on existing files.
Now you can modify and commit files. The pre-commit hooks will check your code before every commit.
git add .
git commit -m "Your message"If any issues are found, pre-commit will warn you and suggest fixes.
Once all checks pass, push your changes to your forked repository:
git push origin mainNow you're ready to work with this Flask app using pre-commit hooks! 🚀