Black: code formatting
Implements #94 (closed)
Uses python package pre-commit
to call Black on every commit.
Needs to call pre-commit install
once the repo is clone to install git hooks. Black is called on staged files. To call black on all files, use `pre-commit run --all-files'.
Commit should fail if black makes some changes.
I've added pre-commit
and black
in the Pipfile as dev-packages
.
Edited by Moul
Merge request reports
Activity
changed milestone to %0.6.0
added 56 commits
-
a9364790...57b8e280 - 54 commits from branch
clients/python:dev
- 6871946b - Apply Black on future commits
- bf6f8de2 - Merge branch 'black' of git.duniter.org:cebash/silkaj into black
-
a9364790...57b8e280 - 54 commits from branch
added 1 commit
- 1fc8ef9d - [mod] #94 (closed) Add bin/silkaj to the list of files for black
added 16 commits
-
1fc8ef9d...c7675605 - 14 commits from branch
clients/python:dev
- 2cc099a3 - [mod] #94 (closed) : Apply Black on future commits
- 0dc62c7e - [mod] #94 (closed) : Add bin/silkaj to the list of files for black
-
1fc8ef9d...c7675605 - 14 commits from branch
added 38 commits
-
0dc62c7e...cf586074 - 37 commits from branch
clients/python:dev
- 0ad5195e - [mod] #94 (closed) : Apply Black on future commits
-
0dc62c7e...cf586074 - 37 commits from branch
added 1 commit
- 159d4572 - [mod] #94 (closed) : Apply Black on future commits
added 2 commits
- 83078779 - [enh] #94 (closed): apply Black on every files.
- 913a6e4f - [mod] remove useless str().
mentioned in commit d017fa6e
Please register or sign in to reply