From d6ba53f3c3e5d0915ed03c9dc63eccc2aad91368 Mon Sep 17 00:00:00 2001 From: Jules Robichaud-Gagnon Date: Fri, 2 Feb 2024 12:23:27 -0500 Subject: [PATCH] fix black --- .pre-commit-config.yaml | 2 +- config/asgi.py | 1 + config/settings/test.py | 1 + config/wsgi.py | 1 + django_structlog/__init__.py | 1 - .../contrib/sites/migrations/0003_set_site_domain_and_name.py | 1 + 6 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1281920b..4ece92e7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/ambv/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black language_version: python3 diff --git a/config/asgi.py b/config/asgi.py index 9135866b..c0e79ebc 100644 --- a/config/asgi.py +++ b/config/asgi.py @@ -1,6 +1,7 @@ """ ASGI config for django_structlog_demo_project project. """ + import os import sys diff --git a/config/settings/test.py b/config/settings/test.py index 0f6dcf79..7d30c4d7 100644 --- a/config/settings/test.py +++ b/config/settings/test.py @@ -1,6 +1,7 @@ """ With these settings, tests run faster. """ + import os import environ diff --git a/config/wsgi.py b/config/wsgi.py index 81c21286..0acddadc 100644 --- a/config/wsgi.py +++ b/config/wsgi.py @@ -13,6 +13,7 @@ framework. """ + import os import sys diff --git a/django_structlog/__init__.py b/django_structlog/__init__.py index 9b5a2c6e..ae28e1ef 100644 --- a/django_structlog/__init__.py +++ b/django_structlog/__init__.py @@ -1,7 +1,6 @@ """ ``django-structlog`` is a structured logging integration for ``Django`` project using ``structlog``. """ - name = "django_structlog" VERSION = (7, 1, 0) diff --git a/django_structlog_demo_project/contrib/sites/migrations/0003_set_site_domain_and_name.py b/django_structlog_demo_project/contrib/sites/migrations/0003_set_site_domain_and_name.py index fdbd233a..cbeaf6d8 100644 --- a/django_structlog_demo_project/contrib/sites/migrations/0003_set_site_domain_and_name.py +++ b/django_structlog_demo_project/contrib/sites/migrations/0003_set_site_domain_and_name.py @@ -3,6 +3,7 @@ http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django """ + from django.conf import settings from django.db import migrations