Remove yapf dependency (#23656)

Yapf has been replaced by black.
This commit is contained in:
Jiajun Yao 2022-04-04 21:50:04 -07:00 committed by GitHub
parent 08159eb668
commit 5f37231842
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 5 deletions

View file

@ -15,7 +15,7 @@ RUN set -x; apt update \
&& mv bazel.gpg /etc/apt/trusted.gpg.d/ \
&& echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list \
&& apt update && apt install bazel-3.7.2 -y \
&& pip3 install cython==0.29.26 pytest pandas tree tabulate pexpect sklearn joblib black==21.12b0 yapf==0.23.0 flake8==3.9.1 mypy==0.782 flake8-quotes flake8-bugbear==21.9.2 setproctitle==1.1.10 psutil \
&& pip3 install cython==0.29.26 pytest pandas tree tabulate pexpect sklearn joblib black==21.12b0 flake8==3.9.1 mypy==0.782 flake8-quotes flake8-bugbear==21.9.2 setproctitle==1.1.10 psutil \
&& python3 -c 'print("startup --output_base=/workspace/ray/.bazel-cache\nstartup --host_jvm_args=-Xmx1800m\nbuild --jobs=6")' > /etc/bazel.bazelrc
RUN update-alternatives --install /usr/local/bin/python python /usr/bin/python3 30 \

View file

@ -7,4 +7,3 @@ requests
tabulate
tensorflow
black==21.12b0
yapf==0.23.0

View file

@ -4,4 +4,3 @@ flake8-quotes==2.0.0
flake8-bugbear==21.9.2
mypy==0.782
black==21.12b0
yapf==0.23.0

View file

@ -40,7 +40,7 @@ from ray.rllib.utils.typing import (
from ray.tune.utils.placement_groups import PlacementGroupFactory
from ray.util.timer import _Timer
# yapf: disable
# fmt: off
# __sphinx_doc_begin__
# Adds the following updates to the `IMPALATrainer` config in
@ -122,7 +122,7 @@ DEFAULT_CONFIG = Trainer.merge_trainer_configs(
)
# __sphinx_doc_end__
# yapf: enable
# fmt: on
class AlphaStarTrainer(appo.APPOTrainer):