From 8d1718c17c6cb328cdd8dbcf4994ddff8a19c5fa Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 20:18:57 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 22.12.0 → 25.11.0](https://github.com/psf/black-pre-commit-mirror/compare/22.12.0...25.11.0) - [github.com/PyCQA/flake8: 6.0.0 → 7.3.0](https://github.com/PyCQA/flake8/compare/6.0.0...7.3.0) - https://github.com/asottile/reorder_python_imports → https://github.com/asottile/reorder-python-imports - [github.com/asottile/reorder-python-imports: v3.9.0 → v3.16.0](https://github.com/asottile/reorder-python-imports/compare/v3.9.0...v3.16.0) - [github.com/econchick/interrogate: 1.5.0 → 1.7.0](https://github.com/econchick/interrogate/compare/1.5.0...1.7.0) - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v6.0.0) --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bee612d..956cd63 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,30 +1,30 @@ exclude: .+/migrations/.+\.py repos: - - repo: https://github.com/psf/black - rev: 22.12.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 25.11.0 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 7.3.0 hooks: - id: flake8 args: [--max-line-length=88] - - repo: https://github.com/asottile/reorder_python_imports - rev: v3.9.0 + - repo: https://github.com/asottile/reorder-python-imports + rev: v3.16.0 hooks: - id: reorder-python-imports - repo: https://github.com/econchick/interrogate - rev: 1.5.0 + rev: 1.7.0 hooks: - id: interrogate args: [--fail-under=100, -v] exclude: ^(docs/conf.py|setup.py) - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v6.0.0 hooks: - id: check-yaml - id: trailing-whitespace From 4fea02fe07896ff83e6a2dd6a99b567cb5af6a93 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 20:19:16 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- drf_user/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drf_user/utils.py b/drf_user/utils.py index 8070c8c..80e4691 100644 --- a/drf_user/utils.py +++ b/drf_user/utils.py @@ -21,9 +21,9 @@ from drf_user.models import OTPValidation from drf_user.models import User -user_settings: Dict[ - str, Union[bool, Dict[str, Union[int, str, bool]]] -] = update_user_settings() +user_settings: Dict[str, Union[bool, Dict[str, Union[int, str, bool]]]] = ( + update_user_settings() +) otp_settings: Dict[str, Union[str, int]] = user_settings["OTP"]