From e589e606988ec323749f760ce2c311676a87e607 Mon Sep 17 00:00:00 2001 From: "pierre-francois.duc" Date: Wed, 15 May 2024 13:51:26 +0200 Subject: [PATCH] Add black to dev requirements --- CONTRIBUTING.md | 2 ++ dev_requirements.txt | 1 + 2 files changed, 3 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7051a32d..c2dc9f49 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -44,6 +44,8 @@ To contribute changes: pre-commit install + This will mainly make sure you can't commit if your code is not linted with black. + The pre-commit hook will check if your code is linted and if it is not it will simply lint it for you, you then only need to stage the changes made by the linter and commit again, as simple as that :) ### Pull requests diff --git a/dev_requirements.txt b/dev_requirements.txt index 7acd232b..e3639560 100644 --- a/dev_requirements.txt +++ b/dev_requirements.txt @@ -1,2 +1,3 @@ pre-commit +black==24.4.2 -e .