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

@ -5,8 +5,8 @@ import pytest
from django.test import override_settings
from django_components.app_settings import ComponentsSettings, app_settings
from django_components.testing import djc_test
from .testutils import setup_test_config
setup_test_config(components={"autodiscover": False})
@ -39,7 +39,7 @@ class TestSettings:
},
)
def test_works_when_base_dir_is_string(self):
assert app_settings.DIRS == [Path("base_dir/components")]
assert [Path("base_dir/components")] == app_settings.DIRS
@djc_test(
django_settings={
@ -47,7 +47,7 @@ class TestSettings:
},
)
def test_works_when_base_dir_is_path(self):
assert app_settings.DIRS == [Path("base_dir/components")]
assert [Path("base_dir/components")] == app_settings.DIRS
@djc_test(
components_settings={