Pre-commit update and run.

This commit is contained in:
Víðir Valberg Guðmundsson 2022-08-09 14:39:02 +02:00
parent 4b999e886e
commit 1c2854c517
2 changed files with 11 additions and 11 deletions

View file

@ -2,11 +2,11 @@ default_language_version:
python: python3 python: python3
repos: repos:
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 21.12b0 rev: 22.6.0
hooks: hooks:
- id: black - id: black
- repo: git://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1 rev: v4.3.0
hooks: hooks:
- id: check-ast - id: check-ast
- id: check-merge-conflict - id: check-merge-conflict
@ -19,7 +19,7 @@ repos:
- id: end-of-file-fixer - id: end-of-file-fixer
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/pycqa/flake8 - repo: https://github.com/pycqa/flake8
rev: 4.0.1 rev: 5.0.4
hooks: hooks:
- id: flake8 - id: flake8
additional_dependencies: additional_dependencies:
@ -28,7 +28,7 @@ repos:
- flake8-tidy-imports - flake8-tidy-imports
args: [--max-line-length=88, --extend-exclude=src/project/settings/deployments/*] args: [--max-line-length=88, --extend-exclude=src/project/settings/deployments/*]
- repo: https://github.com/asottile/reorder_python_imports - repo: https://github.com/asottile/reorder_python_imports
rev: v2.6.0 rev: v3.8.2
hooks: hooks:
- id: reorder-python-imports - id: reorder-python-imports
args: args:
@ -36,14 +36,14 @@ repos:
- --application-directories=.:src - --application-directories=.:src
exclude: migrations/ exclude: migrations/
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v2.29.1 rev: v2.37.3
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: args:
- --py39-plus - --py39-plus
exclude: migrations/ exclude: migrations/
- repo: https://github.com/adamchainz/django-upgrade - repo: https://github.com/adamchainz/django-upgrade
rev: 1.4.0 rev: 1.7.0
hooks: hooks:
- id: django-upgrade - id: django-upgrade
args: args:

View file

@ -10,9 +10,9 @@ def membership_overview(request):
current_membership = memberships.current() current_membership = memberships.current()
previous_memberships = memberships.previous() previous_memberships = memberships.previous()
context = dict( context = {
current_membership=current_membership, "current_membership": current_membership,
previous_memberships=previous_memberships, "previous_memberships": previous_memberships,
) }
return render(request, "membership_overview.html", context) return render(request, "membership_overview.html", context)