Skip to content

Commit

Permalink
Add black format to makefile (#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanpmorgan authored and gabrieldemarmiesse committed Jan 28, 2020
1 parent 2175452 commit 2b4dae1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ install-ci-dependency:

code-format: install-ci-dependency
bash tools/ci_build/code_format.sh --incremental --in-place
black ./

sanity-check: install-ci-dependency
bash tools/ci_build/ci_sanity.sh --incremental
Expand Down
3 changes: 3 additions & 0 deletions tools/ci_build/install/install_ci_dependency.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ rm -f /etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list
# Install clang-format
apt-get update -qq && apt-get install -y clang-format-3.8

# Install black
python3 -m pip install black

# Check clang-format:
CLANG_FORMAT=${CLANG_FORMAT:-clang-format-3.8}
which ${CLANG_FORMAT} > /dev/null
Expand Down

0 comments on commit 2b4dae1

Please sign in to comment.