From 2eb413a36c7a0535ff10e41223b63052172d9971 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 26 Mar 2024 09:54:23 +0100 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#49) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0) - [github.com/pre-commit/mirrors-prettier: v3.0.0 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0...v4.0.0-alpha.8) - [github.com/adamchainz/django-upgrade: 1.14.0 → 1.16.0](https://github.com/adamchainz/django-upgrade/compare/1.14.0...1.16.0) - [github.com/asottile/pyupgrade: v3.10.1 → v3.15.2](https://github.com/asottile/pyupgrade/compare/v3.10.1...v3.15.2) - [github.com/psf/black: 23.7.0 → 24.3.0](https://github.com/psf/black/compare/23.7.0...24.3.0) - [github.com/PyCQA/isort: 5.12.0 → 5.13.2](https://github.com/PyCQA/isort/compare/5.12.0...5.13.2) - [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](https://github.com/PyCQA/flake8/compare/6.1.0...7.0.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 14 +++++++------- config/settings/base.py | 1 + config/wsgi.py | 1 + flamerelay/backend/admin.py | 2 +- flamerelay/users/tests/test_forms.py | 1 + 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index efc862e..45243d2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ default_stages: [commit] repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -18,36 +18,36 @@ repos: - id: detect-private-key - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0 + rev: v4.0.0-alpha.8 hooks: - id: prettier args: ['--tab-width', '2', '--single-quote'] exclude: 'flamerelay/templates/' - repo: https://github.com/adamchainz/django-upgrade - rev: '1.14.0' + rev: '1.16.0' hooks: - id: django-upgrade args: ['--target-version', '4.1'] - repo: https://github.com/asottile/pyupgrade - rev: v3.10.1 + rev: v3.15.2 hooks: - id: pyupgrade args: [--py311-plus] - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 24.3.0 hooks: - id: black - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/PyCQA/flake8 - rev: 6.1.0 + rev: 7.0.0 hooks: - id: flake8 diff --git a/config/settings/base.py b/config/settings/base.py index acf7cb1..b1beb36 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -1,6 +1,7 @@ """ Base settings to build other settings files upon. """ + from pathlib import Path import environ diff --git a/config/wsgi.py b/config/wsgi.py index ff2704f..d75a15a 100644 --- a/config/wsgi.py +++ b/config/wsgi.py @@ -13,6 +13,7 @@ framework. """ + import os import sys from pathlib import Path diff --git a/flamerelay/backend/admin.py b/flamerelay/backend/admin.py index 1468a26..9e01774 100644 --- a/flamerelay/backend/admin.py +++ b/flamerelay/backend/admin.py @@ -37,7 +37,7 @@ class CheckInAdmin(admin.ModelAdmin): "unit", "date_created", "created_by", - "place" + "place", # "image", # "message", # "location", diff --git a/flamerelay/users/tests/test_forms.py b/flamerelay/users/tests/test_forms.py index cc98113..a8e78c7 100644 --- a/flamerelay/users/tests/test_forms.py +++ b/flamerelay/users/tests/test_forms.py @@ -1,6 +1,7 @@ """ Module for all Form Tests. """ + from django.utils.translation import gettext_lazy as _ from flamerelay.users.forms import UserAdminCreationForm