Skip to content
Permalink
Browse files

Update to use stable release of black formatter (#1415)

Signed-off-by: terrytangyuan <terrytangyuan@gmail.com>
  • Loading branch information...
terrytangyuan authored and ywskycn committed Nov 5, 2019
1 parent 2e46a5e commit d030d0ddee33933b95e7d7d26f4bf1d6a3079ceb
Showing with 6 additions and 5 deletions.
  1. +2 −2 .pre-commit-config.yaml
  2. +4 −3 elasticdl/python/worker/worker.py
@@ -7,8 +7,8 @@ repos:
rev: v4.3.20
hooks:
- id: isort
- repo: https://github.com/ambv/black
rev: 19.3b0
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
args: [--line-length=79]
@@ -512,9 +512,10 @@ def _process_eval_task(self, task):
self._evaluation_result = {}

def _process_save_model_task_if_needed(self):
task, dataset = (
self._task_data_service.get_save_model_task_and_dataset()
)
(
task,
dataset,
) = self._task_data_service.get_save_model_task_and_dataset()
if task is not None and dataset is not None:
# TODO: Implement the save model execution process
saved_model_path = task.extended_config.get(

0 comments on commit d030d0d

Please sign in to comment.
You can’t perform that action at this time.