summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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$')
```