Skip to content

Commit 0d323a7

Browse files
[pre-commit.ci] pre-commit autoupdate (#308)
1 parent f30244c commit 0d323a7

9 files changed

+7
-13
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
- id: check-toml
1818
# Python
1919
- repo: https://github.com/psf/black
20-
rev: 22.12.0
20+
rev: 23.1.0
2121
hooks:
2222
- id: black-jupyter
2323
- repo: https://github.com/PyCQA/isort

dpdispatcher/dpcloudserver/temp_test.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#%%
1+
# %%
22
import os
33
import sys
44
import unittest
@@ -11,9 +11,8 @@
1111
# from zip_file import zip_files
1212

1313

14-
#%%
14+
# %%
1515
class DPTest(unittest.TestCase):
16-
1716
test_data = {
1817
"job_type": "indicate",
1918
"log_file": "mylog",

dpdispatcher/hdfs_context.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ def __init__(
1818
*args,
1919
**kwargs,
2020
):
21-
2221
assert type(local_root) == str
2322
self.init_local_root = local_root
2423
self.init_remote_root = remote_root

dpdispatcher/local_context.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ def upload(self, submission):
139139
def download(
140140
self, submission, check_exists=False, mark_failure=True, back_error=False
141141
):
142-
143142
for ii in submission.belonging_tasks:
144143
local_job = os.path.join(self.local_root, ii.task_work_path)
145144
remote_job = os.path.join(self.remote_root, ii.task_work_path)

dpdispatcher/ssh_context.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def __init__(
3838
tar_compress=True,
3939
look_for_keys=True,
4040
):
41-
4241
self.hostname = hostname
4342
self.username = username
4443
self.password = password

dpdispatcher/submission.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from dpdispatcher.machine import Machine
1515

1616
# from dpdispatcher.slurm import SlurmResources
17-
#%%
17+
# %%
1818
default_strategy = dict(if_cuda_multi_devices=False, ratio_unfinished=0.0)
1919

2020

@@ -499,7 +499,6 @@ def __init__(
499499
outlog="log",
500500
errlog="err",
501501
):
502-
503502
self.command = command
504503
self.task_work_path = task_work_path
505504
self.forward_files = forward_files

scripts/script_gen_dargs_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#%%
1+
# %%
22
# import sys, os
33
# sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..' )))
44
# import dpdispatcher

tests/sample_class.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
class SampleClass(object):
2929
@classmethod
3030
def get_sample_resources(cls):
31-
3231
resources = Resources(
3332
number_node=1,
3433
cpu_per_node=4,

tests/test_local_context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#%%
1+
# %%
22
import glob
33
import json
44
import os
@@ -10,7 +10,7 @@
1010
from pathlib import Path
1111
from unittest.mock import MagicMock, PropertyMock, patch
1212

13-
#%%
13+
# %%
1414
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
1515
__package__ = "tests"
1616
# from .context import LocalSession

0 commit comments

Comments
 (0)