summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorjfalkenhagen <jfalkenhagen@uos.de>2020-07-16 16:39:19 +0200
committerjfalkenhagen <jfalkenhagen@uos.de>2020-07-16 16:39:19 +0200
commit98d23807e35cc211415c7e0c887f1b1b502f10e5 (patch)
treeebb649c585166e546dda704990ed4c5eeb95519f /README.md
parenta00ffc0e32ddc72a8faceec4344432cdbf3b90c7 (diff)
parentaf4cc108b5c5132a991a2b83d258ed55e985936f (diff)
Merge branch 'master' into janis
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$')
```