Skip to content

Commit f5f7b6b

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

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
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: 1 addition & 4 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,7 +620,6 @@ 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-
625623
def test_multiple_fileIdManager_connections_after_exception(fid_db_path):
626624
original_file_path = "/path/to/file"
627625
copy_location = "/path/to/copy"
@@ -646,4 +644,3 @@ def test_multiple_fileIdManager_connections_after_exception(fid_db_path):
646644
# that the database is now stuck in a locked state.
647645
manager_2 = ArbitraryFileIdManager(db_path=fid_db_path)
648646
manager_2.copy(original_file_path, another_copy_location)
649-

0 commit comments

Comments
 (0)