Skip to content

Commit 3e8d394

Browse files
committed
Add pre-commit hook example to README
1 parent 784d8b9 commit 3e8d394

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,19 @@ ignore-names = ["BaseTestCase", "*Mixin"]
4949
ignore-names-in-files = ["migrations"]
5050
```
5151

52+
## Pre-commit hook
53+
Create a `.pre-commit-config.yaml` file in the root of your project directory, if it doesn't exist, and add the following to the file:
54+
55+
```
56+
# See https://pre-commit.com for more information
57+
# See https://pre-commit.com/hooks.html for more hooks
58+
repos:
59+
- repo: https://github.com/albertas/deadcode
60+
rev: 2.4.1
61+
hooks:
62+
- id: deadcode
63+
```
64+
5265
## Command line options
5366

5467
| Option                                    | Type | Meaning |

0 commit comments

Comments
 (0)