Skip to content

Commit

Permalink
Run isort
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousLearner committed Feb 26, 2024
1 parent 10b90af commit 2592c71
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
6 changes: 1 addition & 5 deletions pattern_library/management/commands/render_patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
from django.test.client import RequestFactory

from pattern_library import get_base_template_names, get_pattern_base_template_name
from pattern_library.utils import (
get_pattern_context,
render_pattern,
get_renderer,
)
from pattern_library.utils import get_pattern_context, get_renderer, render_pattern


class Command(BaseCommand):
Expand Down
4 changes: 1 addition & 3 deletions pattern_library/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from django.template.loader import get_template, render_to_string
from django.template.loader_tags import ExtendsNode
from django.template.loaders.app_directories import get_app_template_dirs
from django.utils.html import escape
from django.utils.safestring import mark_safe

import markdown
Expand All @@ -22,9 +23,6 @@
from pattern_library.exceptions import TemplateIsNotPattern


from django.utils.html import escape


def path_to_section():
section_config = get_sections()
sections = {}
Expand Down
2 changes: 1 addition & 1 deletion pattern_library/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
get_pattern_config_str,
get_pattern_context,
get_pattern_markdown,
get_renderer,
get_sections,
is_pattern,
render_pattern,
get_renderer,
)


Expand Down
2 changes: 1 addition & 1 deletion tests/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

from pattern_library.utils import (
get_pattern_config_str,
get_template_dirs,
get_renderer,
get_template_dirs,
)


Expand Down

0 comments on commit 2592c71

Please sign in to comment.