From 39a9cdd1a7b6c54ad7b2a5eab48aa45e5d8a713b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Sep 2024 17:46:12 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - https://github.com/timothycrosley/isort → https://github.com/PyCQA/isort - [github.com/PyCQA/isort: 5.12.0 → 5.13.2](https://github.com/PyCQA/isort/compare/5.12.0...5.13.2) - [github.com/psf/black: 23.9.1 → 24.8.0](https://github.com/psf/black/compare/23.9.1...24.8.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6493959f..c5cb4265 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,11 @@ repos: - - repo: https://github.com/timothycrosley/isort - rev: "5.12.0" + - repo: https://github.com/PyCQA/isort + rev: "5.13.2" hooks: - id: isort additional_dependencies: [toml] - repo: https://github.com/psf/black - rev: "23.9.1" + rev: "24.8.0" hooks: - id: black exclude: battDB/migrations/|common/migrations/|dfndb/migrations/|management/migrations/|_other/|data/ From e9bab13e4dce97993285815f56c8e99aa3741f57 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Sep 2024 17:47:13 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- battDB/initial_parsers.py | 1 + dfndb/initial_parameters.py | 1 + dfndb/initial_units.py | 1 + liionsden/settings/settings.py | 1 + liionsden/urls.py | 1 + 5 files changed, 5 insertions(+) diff --git a/battDB/initial_parsers.py b/battDB/initial_parsers.py index 61eece94..a517f5d4 100644 --- a/battDB/initial_parsers.py +++ b/battDB/initial_parsers.py @@ -3,6 +3,7 @@ These functions are run as part of a migration and pre-populate the database with some default parsers. """ + from logging import getLogger logger = getLogger() diff --git a/dfndb/initial_parameters.py b/dfndb/initial_parameters.py index 93e991f7..fc44ec88 100644 --- a/dfndb/initial_parameters.py +++ b/dfndb/initial_parameters.py @@ -3,6 +3,7 @@ These functions are run as part of a migration and pre-populate the database with some default parameters. """ + PARAMETERS = [ dict(name="Time", status="Public", symbol="t", unit=("Time", "s")), dict(name="Step time", status="Public", symbol="ts", unit=("Time", "s")), diff --git a/dfndb/initial_units.py b/dfndb/initial_units.py index 1fb1290c..0cdfe149 100644 --- a/dfndb/initial_units.py +++ b/dfndb/initial_units.py @@ -3,6 +3,7 @@ These functions are run as part of a migration and pre-populate the database with some default quantities and units. """ + from .models import QuantityUnit SI_QUANTITY_UNITS = [ diff --git a/liionsden/settings/settings.py b/liionsden/settings/settings.py index 5281f0b6..bda6f01c 100644 --- a/liionsden/settings/settings.py +++ b/liionsden/settings/settings.py @@ -9,6 +9,7 @@ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ + import os import tempfile diff --git a/liionsden/urls.py b/liionsden/urls.py index 00a0fdb8..e07a6132 100644 --- a/liionsden/urls.py +++ b/liionsden/urls.py @@ -13,6 +13,7 @@ 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ + from azure.core.utils import parse_connection_string from django.conf import settings from django.conf.urls.static import static