From bcadd77ed0936f0bd9a70bde9a7a6e4b7cf90661 Mon Sep 17 00:00:00 2001 From: Michiel De Smet Date: Thu, 27 Oct 2022 14:07:28 +0200 Subject: [PATCH] Add pre-commit instructions in DEVELOPMENT guide --- .github/DEVELOPMENT.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/DEVELOPMENT.md b/.github/DEVELOPMENT.md index acd934b9..b52359ad 100644 --- a/.github/DEVELOPMENT.md +++ b/.github/DEVELOPMENT.md @@ -63,6 +63,8 @@ See [Commits and pull requests](https://github.com/trinodb/trino/blob/master/.gi To run linting and formatting checks before opening a PR: `pip install pre-commit && pre-commit run --all-files` +Code can also be automatically checked on commit by a [pre-commit](https://pre-commit.com/) git hook by executing `pre-commit install`. + In addition to that you should also adhere to the following: ### Readability