From dd8bd0078d9e404046bda450bd2ccf2efb0e7b1b Mon Sep 17 00:00:00 2001 From: mdivecky Date: Wed, 25 Oct 2023 19:44:27 +0200 Subject: [PATCH] Add info about git hook for black --- .githooks/pre-commit | 2 +- README.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 .githooks/pre-commit diff --git a/.githooks/pre-commit b/.githooks/pre-commit old mode 100644 new mode 100755 index ff6ad07..f2f07c8 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -1,3 +1,3 @@ -#!/bin/bash +#!/bin/sh echo "Formatting all python files with Black" black . \ No newline at end of file diff --git a/README.md b/README.md index 3089fdf..ef21e53 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,6 @@ * Add a way to generate autoincrementing config ID # Contributions -Please use `black` formatter. \ No newline at end of file +Please use `black` formatter. + +You can automate the process by running `cp .githooks/pre-commit .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit` after pulling the repository. \ No newline at end of file