Skip to content

Commit

Permalink
Add workflow diagram for pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gcapes committed Jul 21, 2022
1 parent be39721 commit e5db3f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions git/pre-commit.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ pip install pre-commit
pre-commit install
```

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)

## Non-standard configuration of flake8

I've set flake8 to ignore long line errors in `.pre-commit-config.yaml`, because black doesn't format comment lines which then trigger flake8 errors.
Expand Down

0 comments on commit e5db3f9

Please sign in to comment.