From 20a61dc6ed9bebd933d63a38e7fffb0d935fc5a0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 3 Jul 2020 13:50:26 +0200 Subject: README: pep8 -> black --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 47c38df..5529261 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,8 @@ sudo apt install python3-numpy python3-scipy python3-sklearn Code Style --- -Please do not commit code with significant PEP8 violations. It's best to check -this with a pre-commit hook: +Please only commit blackened code. It's best to check this with a pre-commit +hook: ``` #!/bin/sh @@ -25,5 +25,5 @@ fi # Redirect output to stderr. exec 1>&2 -git diff --cached $against | flake8 --diff +black --check $(git diff --cached --name-only --diff-filter=ACM $against | grep '\.py$') ``` -- cgit v1.2.3