Skip to content

Commit 53e5a81

Browse files
author
root
committed
removed the import
1 parent 1e597a0 commit 53e5a81

File tree

2 files changed

+41
-49
lines changed

2 files changed

+41
-49
lines changed

.pre-commit-config.yaml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -14,44 +14,44 @@ repos:
1414
rev: v3.8.2
1515
hooks:
1616
- id: reorder-python-imports
17-
args: [--py38-plus, --add-import, 'from __future__ import annotations']
18-
19-
- repo: https://github.com/pre-commit/mirrors-autopep8
20-
rev: v1.6.0
21-
hooks:
22-
- id: autopep8
23-
24-
- repo: https://github.com/PyCQA/flake8
25-
rev: 4.0.1
26-
hooks:
27-
- id: flake8
28-
args: ["--ignore=E501,W601,F401,E226,E722,E265,W504,E711,F841,E741,F821,E713,W503,F811"]
29-
30-
- repo: https://github.com/asottile/add-trailing-comma
31-
rev: v2.2.3
32-
hooks:
33-
- id: add-trailing-comma
34-
args: [--py36-plus]
35-
36-
- repo: https://github.com/asottile/pyupgrade
37-
rev: v2.37.2
38-
hooks:
39-
- id: pyupgrade
4017
args: [--py38-plus]
4118

42-
43-
#- repo: https://github.com/pre-commit/mirrors-mypy
44-
# rev: v0.961
45-
# hooks:
46-
# - id: mypy
47-
48-
- repo: https://github.com/psf/black
49-
rev: 22.3.0
50-
hooks:
51-
- id: black
52-
53-
- repo: https://github.com/PyCQA/isort
54-
rev: 5.10.1
55-
hooks:
56-
- id: isort
57-
args: ["--py=38", "--profile", "black", "--filter-files"] # solves conflicts between black and isort
19+
# - repo: https://github.com/pre-commit/mirrors-autopep8
20+
# rev: v1.6.0
21+
# hooks:
22+
# - id: autopep8
23+
24+
# - repo: https://github.com/PyCQA/flake8
25+
# rev: 4.0.1
26+
# hooks:
27+
# - id: flake8
28+
# args: ["--ignore=E501,W601,F401,E226,E722,E265,W504,E711,F841,E741,F821,E713,W503,F811"]
29+
30+
# - repo: https://github.com/asottile/add-trailing-comma
31+
# rev: v2.2.3
32+
# hooks:
33+
# - id: add-trailing-comma
34+
# args: [--py36-plus]
35+
36+
# - repo: https://github.com/asottile/pyupgrade
37+
# rev: v2.37.2
38+
# hooks:
39+
# - id: pyupgrade
40+
# args: [--py38-plus]
41+
42+
43+
# #- repo: https://github.com/pre-commit/mirrors-mypy
44+
# # rev: v0.961
45+
# # hooks:
46+
# # - id: mypy
47+
48+
# - repo: https://github.com/psf/black
49+
# rev: 22.3.0
50+
# hooks:
51+
# - id: black
52+
53+
# - repo: https://github.com/PyCQA/isort
54+
# rev: 5.10.1
55+
# hooks:
56+
# - id: isort
57+
# args: ["--py=38", "--profile", "black", "--filter-files"] # solves conflicts between black and isort

bin/functions/load_config.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
16-
from __future__ import annotations
17-
1816
import fcntl
1917
import glob
2018
import os
@@ -353,10 +351,7 @@ def wildcard_replacement(key, value):
353351
HibenchConf[key] = value
354352
finish = False
355353

356-
wildcard_rules = [
357-
(key, HibenchConf[key])
358-
for key in HibenchConf if "*" in key
359-
]
354+
wildcard_rules = [(key, HibenchConf[key]) for key in HibenchConf if "*" in key]
360355
# now, let's check wildcard replacement rules
361356
for key, value in wildcard_rules:
362357
# check if we found a rule like: aaa.*.ccc.*.ddd -> bbb.*.*
@@ -554,10 +549,7 @@ def probe_masters_slaves_by_Yarn():
554549
)
555550
cmd = "( " + yarn_executable + " node -list 2> /dev/null | grep RUNNING )"
556551
try:
557-
worker_hostnames = [
558-
line.split(":")[0]
559-
for line in shell(cmd).split("\n")
560-
]
552+
worker_hostnames = [line.split(":")[0] for line in shell(cmd).split("\n")]
561553
HibenchConf["hibench.slaves.hostnames"] = " ".join(worker_hostnames)
562554
HibenchConfRef["hibench.slaves.hostnames"] = (
563555
"Probed by parsing results from: " + cmd

0 commit comments

Comments
 (0)