Skip to content

Commit 8fe93b1

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

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

jupyter_server_fileid/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ def _create(self, path, stat_info):
690690
"INSERT INTO Files (id, path, ino, crtime, mtime, is_dir) VALUES (?, ?, ?, ?, ?, ?)",
691691
(id, path, stat_info.ino, stat_info.crtime, stat_info.mtime, stat_info.is_dir),
692692
)
693-
except Exception as err:
693+
except Exception as err:
694694
self.log.error(err)
695695
return id
696696

tests/test_manager.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import ntpath
22
import os
33
import posixpath
4-
import sys
54
import sqlite3
6-
5+
import sys
76
from unittest.mock import patch
87

98
import pytest
@@ -621,9 +620,9 @@ def test_db_journal_mode(any_fid_manager_class, fid_db_path, jp_root_dir, db_jou
621620
assert actual_journal_mode[0].upper() == expected_journal_mode
622621

623622

624-
# This test demonstrates an issue raised in
623+
# This test demonstrates an issue raised in
625624
# https://github.com/jupyter-server/jupyter_server_fileid/pull/76
626-
# which was later fixed in
625+
# which was later fixed in
627626
# https://github.com/jupyter-server/jupyter_server_fileid/pull/77
628627
#
629628
# We use this unit test to catch this edge case and ensure
@@ -654,5 +653,3 @@ def test_multiple_fileIdManager_connections_after_exception(fid_db_path):
654653
# make sure no exceptions were raised.
655654
manager_2 = ArbitraryFileIdManager(db_path=fid_db_path)
656655
manager_2.copy(original_file_path, another_copy_location)
657-
658-

0 commit comments

Comments
 (0)