summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-07-03 13:50:26 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-07-03 13:50:26 +0200
commit20a61dc6ed9bebd933d63a38e7fffb0d935fc5a0 (patch)
tree63cc03556ecb4d0eb519cbed509bd3573defc25b /README.md
parentf249d37156b8a82c1e5fceb09b79e8401bf87b96 (diff)
README: pep8 -> black
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files 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$')
```