Skip to content

Commit

Permalink
Merge branch 'main' of github.com:django-stars/backend-skeleton into …
Browse files Browse the repository at this point in the history
…ruff-all-rules
  • Loading branch information
bulya committed Oct 23, 2024
2 parents 23a92bf + bf6eec9 commit 2f1cc9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions {{ cookiecutter.project_slug }}/docs/pre_commit_hook.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
To run additional checks before making commit we use [Pre-commit](https://pre-commit.com/) hooks.


Since the `api` is running inside docker container we don't have a pre-commit as a dependency there, so you need to
install `pre-commit` package [manually](https://pre-commit.com/#install).
Since the `api` is running inside docker container and we don't have a pre-commit as a dependency there, you need to
install `pre-commit` package [locally](https://pre-commit.com/#install).

> [!NOTE]
> The `safety` hook also requires `poetry` to be in your `PATH`.
> Ensure the poetry installed with the same python version as in `pyproject.toml`
> The `safety` hook also [requires](https://github.com/Lucas-C/pre-commit-hooks-safety?tab=readme-ov-file#supported-files) `poetry` to be in your `PATH`.
> Ensure the poetry [installed](https://python-poetry.org/docs/#installation) with the same python version as in `pyproject.toml`
You need to generate the actual git pre-commit hook. It should be done only once:

Expand Down

0 comments on commit 2f1cc9d

Please sign in to comment.