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 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"]