diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5f687b2..0be72d3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,6 +18,8 @@ jobs: steps: - uses: "actions/checkout@v4" - uses: "astral-sh/setup-uv@v5" + with: + python-version: ${{ matrix.python-version }} - name: "Install tox" run: "uv tool install tox --with tox-uv,tox-gh-actions,coverage" diff --git a/Makefile b/Makefile index 5820211..58c7902 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,10 @@ correct: docs: uv run make -C docs html +lint: + uv run ruff check + uv run ruff format --check --diff + pytests: uv run pytest $(ARGS) diff --git a/tapeforms/tests/test_fieldsets.py b/tapeforms/tests/test_fieldsets.py index 6d3ca2a..df6be7d 100644 --- a/tapeforms/tests/test_fieldsets.py +++ b/tapeforms/tests/test_fieldsets.py @@ -1,4 +1,3 @@ -import pytest from django import forms from tapeforms.fieldsets import TapeformFieldset, TapeformFieldsetsMixin @@ -121,7 +120,10 @@ def test_get_fieldsets_empty(self): assert len(fieldsets) == 1 assert fieldsets[0].primary_fieldset is True assert [row[0].name for row in fieldsets[0].visible_fields()] == [ - 'my_field1', 'my_field2', 'my_field4'] + "my_field1", + "my_field2", + "my_field4", + ] def test_get_fieldsets_auto_primary(self): form = DummyFormWithFieldsets()