mirror of
https://github.com/django-components/django-components.git
synced 2025-08-10 09:17:59 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
fd9c441024
commit
752567bf7c
2 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue