diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 00f3f64..a2471b1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,24 +1,24 @@ repos: - - repo: https://github.com/asottile/reorder_python_imports - rev: v3.8.3 + - repo: https://github.com/asottile/reorder-python-imports + rev: v3.14.0 hooks: - id: reorder-python-imports args: ["--application-directories", "src"] - repo: https://github.com/asottile/pyupgrade - rev: v3.0.0 + rev: v3.19.0 hooks: - id: pyupgrade - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 24.10.0 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 + rev: 7.1.1 hooks: - id: flake8 additional_dependencies: [flake8-bugbear] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v5.0.0 hooks: - id: check-byte-order-marker - id: trailing-whitespace diff --git a/src/secure_cookie/cookie.py b/src/secure_cookie/cookie.py index 673eb64..7a22e26 100644 --- a/src/secure_cookie/cookie.py +++ b/src/secure_cookie/cookie.py @@ -98,6 +98,7 @@ def application(request): .. autoexception:: UnquoteError """ + import base64 import json as _json from datetime import datetime diff --git a/src/secure_cookie/session.py b/src/secure_cookie/session.py index 7804b90..12bf0ff 100644 --- a/src/secure_cookie/session.py +++ b/src/secure_cookie/session.py @@ -82,6 +82,7 @@ def application(request): .. autoclass:: SessionMiddleware :members: """ + import os import pathlib import pickle