util-docker: Add Python Black to Dockerfiles
Python Black is to be used by the gem5 project to format our Python files. More information on Python Black can be found here: https://github.com/psf/black Change-Id: I1e31b090a422e1c17d36c4b597bfb59efbb6833d Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/46999 Maintainer: Bobby Bruce <bbruce@ucdavis.edu> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu>
This commit is contained in:
committed by
Bobby Bruce
parent
90207e150c
commit
f8439a12be
@@ -33,7 +33,7 @@ RUN apt -y update && apt -y upgrade && \
|
||||
libhdf5-serial-dev python3-pydot libpng-dev libelf-dev pkg-config \
|
||||
python3-pip python3-venv
|
||||
|
||||
RUN pip3 install mypy
|
||||
RUN pip3 install black mypy
|
||||
|
||||
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
|
||||
RUN update-alternatives --install /usr/bin/python python /usr/bin/python2 1
|
||||
|
||||
@@ -32,6 +32,4 @@ RUN apt -y update && apt -y upgrade && \
|
||||
libprotobuf-dev protobuf-compiler libprotoc-dev libgoogle-perftools-dev \
|
||||
python3-dev python-is-python3 doxygen libboost-all-dev \
|
||||
libhdf5-serial-dev python3-pydot libpng-dev libelf-dev pkg-config pip \
|
||||
python3-venv
|
||||
|
||||
RUN pip install mypy
|
||||
python3-venv black
|
||||
|
||||
Reference in New Issue
Block a user