Skip to content

Commit d6436d1

Browse files
author
Johannes Otepka
committed
ruff format changes
1 parent 29fe5e1 commit d6436d1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ipyparallel/controller/mongodb.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
except ImportError:
1212
from bson import Binary
1313

14+
from bson.codec_options import CodecOptions
1415
from traitlets import Dict, Instance, List, Unicode
1516

1617
from .dictdb import BaseDB
17-
from bson.codec_options import CodecOptions
1818

1919
# -----------------------------------------------------------------------------
2020
# MongoDB class
@@ -55,7 +55,9 @@ def __init__(self, **kwargs):
5555
# for more details
5656
pymongo_version_major = int(version.split('.')[0])
5757
if pymongo_version_major < 4:
58-
raise Exception(f"pymongo package too old (current version={version}). Please update to version 4.0 or higher")
58+
raise Exception(
59+
f"pymongo package too old (current version={version}). Please update to version 4.0 or higher"
60+
)
5961

6062
if self._connection is None:
6163
self._connection = MongoClient(
@@ -66,7 +68,7 @@ def __init__(self, **kwargs):
6668
options = CodecOptions(tz_aware=True)
6769
self._db = self._connection[self.database]
6870
self._records = self._db.get_collection("task_records", options)
69-
#self._records = self._db['task_records']
71+
# self._records = self._db['task_records']
7072
self._records.create_index('msg_id', unique=True)
7173
self._records.create_index('submitted') # for sorting history
7274
# for rec in self._records.find

0 commit comments

Comments
 (0)