diff --git a/README.md b/README.md index 53bf2c7..37b80fc 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,19 @@ ignore-names = ["BaseTestCase", "*Mixin"] ignore-names-in-files = ["migrations"] ``` +## Pre-commit hook example +Create a `.pre-commit-config.yaml` file in the root of the project directory, if it doesn't exist, and add the following to the file: + +``` +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: + - repo: https://github.com/albertas/deadcode + rev: 2.4.1 + hooks: + - id: deadcode +``` + ## Command line options | Option                                    | Type | Meaning |