Skip to content

Commit

Permalink
Explain where pre-commit environment is created
Browse files Browse the repository at this point in the history
  • Loading branch information
gcapes committed Jul 22, 2022
1 parent f97aa54 commit 464e088
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions git/pre-commit.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ pip install pre-commit
pre-commit install
```

This installs the tools in an environment at `~/.cache/pre-commit/`.

I found the pre-commit workflow above on a [blog](https://ljvmiranda921.github.io/notebook/2018/06/21/precommits-using-black-and-flake8/) and it works like this:

![black then flake8 diagram](https://ljvmiranda921.github.io/assets/png/tuts/precommit_pipeline.png)
Expand Down

0 comments on commit 464e088

Please sign in to comment.