diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5ed15a4..c13df8f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,7 +34,7 @@ repos: # Autoformat: Python code - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black @@ -64,7 +64,7 @@ repos: # Lint: Python code - repo: https://github.com/pycqa/flake8 - rev: "6.1.0" + rev: "7.0.0" hooks: - id: flake8 diff --git a/nativeauthenticator/__init__.py b/nativeauthenticator/__init__.py index be21c85..d8118bf 100644 --- a/nativeauthenticator/__init__.py +++ b/nativeauthenticator/__init__.py @@ -1,6 +1,7 @@ """ ``` """ + from nativeauthenticator.nativeauthenticator import NativeAuthenticator __all__ = [NativeAuthenticator] diff --git a/nativeauthenticator/crypto/crypto.py b/nativeauthenticator/crypto/crypto.py index c72ff07..241bb99 100644 --- a/nativeauthenticator/crypto/crypto.py +++ b/nativeauthenticator/crypto/crypto.py @@ -1,6 +1,7 @@ """ Django's standard crypto functions and utilities. """ + import hashlib import hmac import secrets diff --git a/nativeauthenticator/crypto/signing.py b/nativeauthenticator/crypto/signing.py index 90d835d..0b24308 100644 --- a/nativeauthenticator/crypto/signing.py +++ b/nativeauthenticator/crypto/signing.py @@ -32,6 +32,7 @@ There are 65 url-safe characters: the 64 used by url-safe base64 and the ':'. These functions make use of all of them. """ + import base64 import datetime import json