Skip to content

Commit 77eb618

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e74d2a4 commit 77eb618

15 files changed

Lines changed: 19 additions & 27 deletions

File tree

‎doc/conf.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
#
32
# documentation build configuration file, created by
43
# sphinx-quickstart on Thu Jul 23 19:40:08 2015.

‎doc/sphinx_util.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# -*- coding: utf-8 -*-
21
"""Helper utilty function for customization."""
2+
33
import os
44
import subprocess
55
import sys

‎tracker/dmlc_tracker/__init__.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
"""DMLC Tracker modules for running jobs on different platforms."""
22

3-
from __future__ import absolute_import

‎tracker/dmlc_tracker/kubernetes.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
One need to make sure kubectl-able.
66
"""
7-
from __future__ import absolute_import
7+
88

99
import yaml
1010
from kubernetes import client, config

‎tracker/dmlc_tracker/launcher.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22
# pylint: disable=invalid-name
33
"""The container launcher script that launches DMLC with the right env variable."""
4-
from __future__ import absolute_import
4+
55

66
import glob
77
import os
@@ -55,7 +55,7 @@ def main():
5555
if hadoop_home:
5656
library_path.append("%s/lib/native" % hdfs_home)
5757
library_path.append("%s/lib" % hdfs_home)
58-
(classpath, _) = subprocess.Popen(
58+
classpath, _ = subprocess.Popen(
5959
"%s/bin/hadoop classpath" % hadoop_home,
6060
stdout=subprocess.PIPE,
6161
shell=True,

‎tracker/dmlc_tracker/local.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Submission job for local jobs."""
22

33
# pylint: disable=invalid-name
4-
from __future__ import absolute_import
54

65
import logging
76
import os

‎tracker/dmlc_tracker/mesos.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
One need to make sure all slaves machines are ssh-able.
66
"""
7-
from __future__ import absolute_import
7+
88

99
import json
1010
import logging

‎tracker/dmlc_tracker/mpi.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"""
44

55
# pylint: disable=invalid-name
6-
from __future__ import absolute_import
76

87
import logging
98
import subprocess
@@ -26,7 +25,7 @@ def get_mpi_env(envs):
2625
return cmd
2726

2827
# decide MPI version.
29-
(out, err) = subprocess.Popen(
28+
out, err = subprocess.Popen(
3029
["mpirun", "--version"], stdout=subprocess.PIPE, stderr=subprocess.PIPE
3130
).communicate()
3231
if b"Open MPI" in out:

‎tracker/dmlc_tracker/opts.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# pylint: disable=invalid-name
22
"""Command line options of job submission script."""
3+
34
import argparse
45
import os
56

@@ -317,7 +318,7 @@ def get_opts(args=None):
317318
type=int,
318319
help=("Number of attempt local tracker can restart slave."),
319320
)
320-
(args, unknown) = parser.parse_known_args(args)
321+
args, unknown = parser.parse_known_args(args)
321322
args.command += unknown
322323

323324
if args.cluster is None:

‎tracker/dmlc_tracker/sge.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Submit jobs to Sun Grid Engine."""
22

33
# pylint: disable=invalid-name
4-
from __future__ import absolute_import
54

65
import os
76
import subprocess

0 commit comments

Comments
 (0)