refactor: replace isort, black and flake8 with ruff (#1346)
Some checks are pending
Docs - build & deploy / docs (push) Waiting to run
Run tests / build (ubuntu-latest, 3.10) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.11) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.12) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.13) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.8) (push) Waiting to run
Run tests / test_sampleproject (3.13) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.9) (push) Waiting to run
Run tests / build (windows-latest, 3.10) (push) Waiting to run
Run tests / build (windows-latest, 3.11) (push) Waiting to run
Run tests / build (windows-latest, 3.12) (push) Waiting to run
Run tests / build (windows-latest, 3.13) (push) Waiting to run
Run tests / build (windows-latest, 3.8) (push) Waiting to run
Run tests / build (windows-latest, 3.9) (push) Waiting to run
Run tests / test_docs (3.13) (push) Waiting to run

This commit is contained in:
Juro Oravec 2025-09-10 14:06:53 +02:00 committed by GitHub
parent 5279fd372a
commit f100cc1836
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
128 changed files with 3076 additions and 2599 deletions

View file

@ -3,9 +3,9 @@ from django.template.base import Template, Token, TokenType
from pytest_django.asserts import assertHTMLEqual
from django_components import Component, register, types
from django_components.testing import djc_test
from django_components.util.template_parser import parse_template
from django_components.testing import djc_test
from .testutils import setup_test_config
setup_test_config({"autodiscover": False})
@ -103,7 +103,7 @@ class TestTemplateParser:
"""{% verbatim %}
{{ this_is_not_a_var }}
{% this_is_not_a_tag %}
{% endverbatim %}"""
{% endverbatim %}""",
)
token_tuples = [token2tuple(token) for token in tokens]
@ -126,7 +126,7 @@ class TestTemplateParser:
{% verbatim %}
{% endverbatim %}
{% endverbatim blockname %}
{% endverbatim myblock %}"""
{% endverbatim myblock %}""",
)
token_tuples = [token2tuple(token) for token in tokens]
@ -178,7 +178,7 @@ class TestTemplateParser:
{% endcomponent %}
{% endverbatim %}
{% endcomponent %}
{% endif %}"""
{% endif %}""",
)
token_tuples = [token2tuple(token) for token in tokens]