From 1c2854c5173c97af44402bd17ad1c27010a52b82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Tue, 9 Aug 2022 14:39:02 +0200 Subject: [PATCH] Pre-commit update and run. --- .pre-commit-config.yaml | 14 +++++++------- src/membership/views.py | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 094070e..e9615dd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,11 +2,11 @@ default_language_version: python: python3 repos: - repo: https://github.com/psf/black - rev: 21.12b0 + rev: 22.6.0 hooks: - id: black - - repo: git://github.com/pre-commit/pre-commit-hooks - rev: v4.0.1 + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.3.0 hooks: - id: check-ast - id: check-merge-conflict @@ -19,7 +19,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/pycqa/flake8 - rev: 4.0.1 + rev: 5.0.4 hooks: - id: flake8 additional_dependencies: @@ -28,7 +28,7 @@ repos: - flake8-tidy-imports args: [--max-line-length=88, --extend-exclude=src/project/settings/deployments/*] - repo: https://github.com/asottile/reorder_python_imports - rev: v2.6.0 + rev: v3.8.2 hooks: - id: reorder-python-imports args: @@ -36,14 +36,14 @@ repos: - --application-directories=.:src exclude: migrations/ - repo: https://github.com/asottile/pyupgrade - rev: v2.29.1 + rev: v2.37.3 hooks: - id: pyupgrade args: - --py39-plus exclude: migrations/ - repo: https://github.com/adamchainz/django-upgrade - rev: 1.4.0 + rev: 1.7.0 hooks: - id: django-upgrade args: diff --git a/src/membership/views.py b/src/membership/views.py index 9fbeded..ee0faff 100644 --- a/src/membership/views.py +++ b/src/membership/views.py @@ -10,9 +10,9 @@ def membership_overview(request): current_membership = memberships.current() previous_memberships = memberships.previous() - context = dict( - current_membership=current_membership, - previous_memberships=previous_memberships, - ) + context = { + "current_membership": current_membership, + "previous_memberships": previous_memberships, + } return render(request, "membership_overview.html", context)