From 4769db59c299ac32174be666a71f357be1ae077a Mon Sep 17 00:00:00 2001 From: Yannic Kilcher Date: Sun, 8 Jan 2023 16:53:48 +0100 Subject: [PATCH 1/2] added pre-commit guides and purposely did not run pre-commit --- CONTRIBUTING.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 608afe25..54e13418 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -96,7 +96,9 @@ The website is built using Next.js and is in the `website` folder. ### Pre-commit -Install `pre-commit` and run `pre-commit install` to install the pre-commit +We are using `pre-commit` to enforce code style and formatting. + +Install `pre-commit` from [its website](https://pre-commit.com) and run `pre-commit install` to install the pre-commit hooks. In case you haven't done this, have already committed, and CI is failing, you From dc5a7d5c10bafae7c246dd72850db4fbe9826e5f Mon Sep 17 00:00:00 2001 From: Yannic Kilcher Date: Sun, 8 Jan 2023 16:57:17 +0100 Subject: [PATCH 2/2] ran pre-commit --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 54e13418..428f6a50 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -98,8 +98,8 @@ The website is built using Next.js and is in the `website` folder. We are using `pre-commit` to enforce code style and formatting. -Install `pre-commit` from [its website](https://pre-commit.com) and run `pre-commit install` to install the pre-commit -hooks. +Install `pre-commit` from [its website](https://pre-commit.com) and run +`pre-commit install` to install the pre-commit hooks. In case you haven't done this, have already committed, and CI is failing, you can run `pre-commit run --all-files` to run the pre-commit hooks on all files.