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