[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-04-14 14:49:07 +00:00
parent fd9c441024
commit 752567bf7c
2 changed files with 3 additions and 5 deletions

View file

@ -22,9 +22,7 @@ def autodiscover() -> None:
# Autodetect a <component>.py file in a components dir
component_filepaths = search(search_glob="**/*.py").matched_files
logger.debug(
f"Autodiscover found {len(component_filepaths)} files in component directories."
)
logger.debug(f"Autodiscover found {len(component_filepaths)} files in component directories.")
for path in component_filepaths:
# This imports the file and runs it's code. So if the file defines any

View file

@ -1,6 +1,6 @@
from pathlib import Path
from unittest import mock
from django.template.engine import Engine
from django.urls import include, path
@ -10,7 +10,7 @@ from .testutils import Django30CompatibleSimpleTestCase as SimpleTestCase
# isort: on
from django_components import autodiscover, component, component_registry, _filepath_to_python_module
from django_components import _filepath_to_python_module, autodiscover, component, component_registry
from django_components.template_loader import Loader
urlpatterns = [