Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Yu <justinvyu@anyscale.com>
  • Loading branch information
justinvyu committed Dec 28, 2023
1 parent ec3c988 commit 8026584
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xgboost_ray/tests/test_tune.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import shutil
import tempfile
import unittest
from unittest.mock import patch, MagicMock
from unittest.mock import MagicMock, patch

import numpy as np
import ray
Expand Down Expand Up @@ -83,7 +83,9 @@ def testNumIters(self):
# TODO(justinvyu): Remove this once the xgboost integration
# has been updated on the Ray side.
try:
callback = TuneReportCheckpointCallback(frequency=1, checkpoint_at_end=False)
callback = TuneReportCheckpointCallback(
frequency=1, checkpoint_at_end=False
)
except TypeError:
callback = TuneReportCheckpointCallback(frequency=1)

Expand Down

0 comments on commit 8026584

Please sign in to comment.