Skip to content

Commit 334fd45

Browse files
authored
Lastest Black. (#1171)
1 parent d0f3f41 commit 334fd45

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
- id: pyupgrade
2121
args: [--py310-plus]
2222
- repo: https://github.com/psf/black
23-
rev: 25.12.0
23+
rev: 26.1.0
2424
hooks:
2525
- id: black
2626
- repo: https://github.com/pycqa/flake8

flask_security/proxies.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
lambda: current_app.extensions["security"]
1515
)
1616

17-
_datastore: "UserDatastore" = LocalProxy( # type:ignore
18-
lambda: _security.datastore
19-
)
17+
_datastore: "UserDatastore" = LocalProxy(lambda: _security.datastore) # type: ignore
2018

2119
_pwd_context: "CryptContext" = LocalProxy(lambda: _security.pwd_context) # type: ignore
2220

flask_security/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ def get_post_action_redirect(
748748
The solution is to simply 'quote' the path.
749749
"""
750750
rurl = propagate_next(find_redirect(config_key), next_loc)
751-
(scheme, netloc, path, query, fragment) = urlsplit(rurl)
751+
scheme, netloc, path, query, fragment = urlsplit(rurl)
752752
safe_url = urlunsplit((scheme, netloc, quote(path), query, fragment))
753753
return safe_url
754754

tests/test_csrf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from flask_security import Security, auth_required
2222
from tests.test_utils import get_form_input_value, get_session, logout
2323

24-
2524
REAL_VALIDATE_CSRF = None
2625

2726

tests/view_scaffold.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
data and a mail sender that flashes what mail would be sent!
2121
2222
"""
23+
2324
from __future__ import annotations
2425

2526
import base64

0 commit comments

Comments
 (0)