Skip to content

cambridge-FDS/solution_ps2_ex1_pre_commit

Repository files navigation

PS2_ex1_pre_commit_hooks

This is the solution to PS2 ex 1: Pre-commit hooks.

Setup

Install the virtual environment and install your repo from source:

conda env create -f environment.yml
conda activate gdp
pip install --no-build-isolation -e .

To install the pre-commit hooks, run:

pre-commit install

When updating the pre-commit hooks, run:

pre-commit clean
pre-commit install

To run pre-commit hooks on all files, run:

pre-commit run --all-files

to run it on a specific file, run:

pre-commit run --files <file>

About

This repo showcases how to add pre-commit hoooks, a .gitignore file, and type hints.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published