chore(deps): bump pre-commit tools/libs

Prep for python 3.12
Reformat files with latest pre-commit tools

Signed-off-by: moson <moson@archlinux.org>
This commit is contained in:
moson 2024-04-25 07:25:39 +02:00
parent 3220cf886e
commit c6a530f24f
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
28 changed files with 33 additions and 12 deletions

View file

@ -37,6 +37,7 @@ then clears the database for each test function run in that module.
It is done this way because migration has a large cost; migrating
ahead of each function takes too long when compared to this method.
"""
import os
import pathlib
from multiprocessing import Lock

View file

@ -1,4 +1,5 @@
""" A test suite used to test HTML renders in different cases. """
import hashlib
import os
import tempfile

View file

@ -1,4 +1,5 @@
""" Test our l10n module. """
from aurweb import config, filters, l10n
from aurweb.testing.requests import Request

View file

@ -8,8 +8,6 @@ from aurweb.models.package import Package
from aurweb.models.package_base import PackageBase
from aurweb.models.user import User
user = pkgbase = package = None
@pytest.fixture(autouse=True)
def setup(db_test):

View file

@ -144,9 +144,11 @@ def requests(
pkgreq = db.create(
PackageRequest,
ReqTypeID=DELETION_ID,
User=maintainer2
if packages[i].PackageBase.Maintainer.Username == "test_maintainer2"
else user,
User=(
maintainer2
if packages[i].PackageBase.Maintainer.Username == "test_maintainer2"
else user
),
PackageBase=packages[i].PackageBase,
PackageBaseName=packages[i].Name,
Comments=f"Deletion request for pkg_{i}",

View file

@ -1,4 +1,5 @@
""" Test our Session model. """
from unittest import mock
import pytest