Update lint and ci to automatically check that black has been run + update docs + add config file to hide the formatting commit.

This commit is contained in:
Bram Wiepjes committed 2021-04-12 10:46:40 +02:00
1 parent 9711d46b29
commit 9b42046849
3 files changed
+18 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
# Configure git to use this file by running:
# git config blame.ignoreRevsFile .git-blame-ignore-revs
# Migrate code style to Black
9711d46b29a56cbd43d927948fc5488be53c99ba
+1 -1
View File
@@ -6,7 +6,7 @@ install-dev-dependencies:
pip install -r requirements/dev.txt
lint:
flake8 src tests || exit;
flake8 src tests && black . --check || exit;
format:
black . || exit;
@@ -127,3 +127,15 @@ Both the web-frontend and backend containers need to keep running while you are
developing. They also monitor file changes and update automatically so you don't need to
worry about reloading. Go and make some changes yourself. You should see the result
right away.
## Fixing git blame
A large formatting only commit was made to the repo when we converted to use the black
auto-formatter on April, 12 2021. If you don't want to see this commit in git blame, you
can run the command below to get your local git to ignore that commit in blame for this
repo:
```bash
$ git config blame.ignoreRevsFile .git-blame-ignore-revs
```