Skip to content

Commit 43357ec

Browse files
committed
CI linters don't match pre-commit
why is hatch fmt inconsistent with ruff?
1 parent 6d1cc06 commit 43357ec

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

jupyter_server/auth/security.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,8 @@ def passwd(passphrase=None, algorithm="argon2"):
6262
try:
6363
import argon2
6464
except ModuleNotFoundError:
65-
raise ImportError(
66-
"argon2 password hashing requires argon2-cffi package. `pip install 'jupyter-server[password]'` for support."
67-
) from None
65+
msg = "argon2 password hashing requires argon2-cffi package. `pip install 'jupyter-server[password]'` for support."
66+
raise ImportError(msg) from None
6867

6968
ph = argon2.PasswordHasher(
7069
memory_cost=10240,
@@ -113,9 +112,8 @@ def passwd_check(hashed_passphrase, passphrase):
113112
try:
114113
import argon2
115114
except ModuleNotFoundError:
116-
raise ImportError(
117-
"argon2 password hashing requires argon2-cffi package. `pip install 'jupyter-server[password]'` for support."
118-
) from None
115+
msg = "argon2 password hashing requires argon2-cffi package. `pip install 'jupyter-server[password]'` for support."
116+
raise ImportError(msg) from None
119117
import argon2
120118
import argon2.exceptions
121119

0 commit comments

Comments
 (0)