Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#65)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.2 → v0.6.5](astral-sh/ruff-pre-commit@v0.5.2...v0.6.5)
- [github.com/pre-commit/mirrors-mypy: v1.10.1 → v1.11.2](pre-commit/mirrors-mypy@v1.10.1...v1.11.2)

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

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Sep 17, 2024
1 parent 5a5adc1 commit fd9c7db
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.2
rev: v0.6.5
hooks:
- id: ruff
args: [--fix, --show-fixes]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.1
rev: v1.11.2
hooks:
- id: mypy
additional_dependencies: ["pytest"]
2 changes: 1 addition & 1 deletion examples/jinja.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
from pathlib import Path
from uuid import uuid1

from asphalt.core import CLIApplicationComponent, Context, run_application
from jinja2 import FileSystemLoader

from asphalt.core import CLIApplicationComponent, Context, run_application
from asphalt.templating.api import TemplateRenderer


Expand Down
1 change: 0 additions & 1 deletion examples/mako_.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from pathlib import Path

from asphalt.core import CLIApplicationComponent, Context, run_application

from asphalt.templating.api import TemplateRenderer


Expand Down
1 change: 0 additions & 1 deletion src/asphalt/templating/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from typing import Any

from asphalt.core import Component, Context, PluginContainer, qualified_name

from asphalt.templating.api import TemplateRenderer

template_renderers = PluginContainer("asphalt.templating.renderers", TemplateRenderer)
Expand Down
2 changes: 1 addition & 1 deletion src/asphalt/templating/renderers/django.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
from collections.abc import Iterable
from typing import Any

from asphalt.core import NoCurrentContext, current_context
from django.template import Engine, Template
from django.template.context import Context

from asphalt.core import NoCurrentContext, current_context
from asphalt.templating.api import TemplateRenderer
from asphalt.templating.utils import package_to_directory

Expand Down
2 changes: 1 addition & 1 deletion src/asphalt/templating/renderers/jinja2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

from typing import Any

from asphalt.core import NoCurrentContext, current_context, resolve_reference
from jinja2 import Template
from jinja2.environment import Environment
from jinja2.loaders import PackageLoader

from asphalt.core import NoCurrentContext, current_context, resolve_reference
from asphalt.templating.api import TemplateRenderer


Expand Down
2 changes: 1 addition & 1 deletion src/asphalt/templating/renderers/mako.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
from collections.abc import Iterable
from typing import Any

from asphalt.core import NoCurrentContext, current_context
from mako.lookup import TemplateLookup
from mako.template import Template

from asphalt.core import NoCurrentContext, current_context
from asphalt.templating.api import TemplateRenderer
from asphalt.templating.utils import package_to_directory

Expand Down
2 changes: 1 addition & 1 deletion src/asphalt/templating/renderers/tornado.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

from typing import Any

from asphalt.core import NoCurrentContext, current_context
from tornado.template import Loader, Template

from asphalt.core import NoCurrentContext, current_context
from asphalt.templating.api import TemplateRenderer
from asphalt.templating.utils import package_to_directory

Expand Down
2 changes: 1 addition & 1 deletion tests/test_component.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
from asphalt.core.context import Context

from asphalt.core.context import Context
from asphalt.templating.api import TemplateRenderer
from asphalt.templating.component import TemplatingComponent
from asphalt.templating.renderers.jinja2 import Jinja2Renderer
Expand Down
2 changes: 1 addition & 1 deletion tests/test_renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
from typing import cast

import pytest
from asphalt.core import Context
from pytest import FixtureRequest

from asphalt.core import Context
from asphalt.templating.api import TemplateRenderer
from asphalt.templating.renderers.django import DjangoRenderer
from asphalt.templating.renderers.jinja2 import Jinja2Renderer
Expand Down

0 comments on commit fd9c7db

Please sign in to comment.