source /usr/local/share/venv/hsp2dev_py10/bin/activate
python3 -m pip install ruff
# Install pre-commit
# Note: in the root of the repo file ".pre-commit-config.yaml" which outlines the fixes on commit
pip install pre-commit
# Note: to ACTIVATE pre-commit in a repo, you must cd to the repo and install:
cd /opt/model/HSPsquared
pre-commit install-hooks
Overview
.pre-commit-config.yaml--addthem, and then when you executecommit, thepre-commitsystem will:ruff(and other) settings onto your codegit committo accept them. (If not, use gitruff'ing code