From 1d7263d77499ee505870b4c9626bd1d96495e1d2 Mon Sep 17 00:00:00 2001 From: Dallan Quass Date: Fri, 20 Oct 2023 17:06:58 -0600 Subject: [PATCH] add pre-commit as a git hook --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1e8baa0..23dfca1 100644 --- a/README.md +++ b/README.md @@ -21,12 +21,14 @@ Can be repurposed to create models and process data for any semantic search proj Install rtx: https://github.com/jdx/rtx -- when you cd to the project directory, rtx should install the correct version of python, poetry, and pipx +- when you cd to the project directory, run `rtx install` to install the correct version of python, poetry, and pipx Install dependencies using poetry: `poetry install` Install nox: `poetry run pipx install nox && poetry run pipx inject nox nox-poetry` +Install pre-commit as a git hook: `poetry run pre-commit install` + Install spacy model: `poetry run python -m spacy download en_core_web_sm` Create a `.env` file with the following variables: