Skip to content

Commit e594031

Browse files
committed
fix-lint
1 parent c3c4b05 commit e594031

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

jupyter_server/services/contents/filecheckpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def checkpoint_path(self, checkpoint_id, path):
112112
filename = f"{basename}-{checkpoint_id}{ext}"
113113
os_path = self._get_os_path(path=parent)
114114
cp_dir = os.path.join(os_path, self.checkpoint_dir)
115-
# If parent directory isnt writable, use system temp
115+
# If parent directory isn't writable, use system temp
116116
if not os.access(os.path.dirname(cp_dir), os.W_OK):
117117
rel = os.path.relpath(os_path, start=self.root_dir)
118118
cp_dir = os.path.join(tempfile.gettempdir(), "jupyter_checkpoints", rel)

jupyter_server/services/contents/fileio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ def atomic_writing(path, text=True, encoding="utf-8", log=None, **kwargs):
107107
mode = "w" if text else "wb"
108108
# direct open on the target file
109109
if text:
110-
fileobj = open(path, mode, encoding=encoding, **kwargs)
110+
fileobj = open(path, mode, encoding=encoding, **kwargs) # noqa: SIM115
111111
else:
112-
fileobj = open(path, mode, **kwargs)
112+
fileobj = open(path, mode, **kwargs) # noqa: SIM115
113113
try:
114114
yield fileobj
115115
finally:

0 commit comments

Comments
 (0)