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
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:

View file

@ -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)