diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b5d3aa1..13c9355 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,11 +36,12 @@ jobs: - uses: actions/checkout@v5 with: persist-credentials: false + - name: Run Ruff Linting 🧹 uses: astral-sh/ruff-action@v3 - with: - args: check - src: "." + + - name: Run Ruff Formatting 🧽 + run: ruff format --check . test-regular: needs: ["ruff", "uv-lock-check"] diff --git a/scheduler/tests/test_task_types/test_task_model.py b/scheduler/tests/test_task_types/test_task_model.py index fcab1ec..cf5bf25 100644 --- a/scheduler/tests/test_task_types/test_task_model.py +++ b/scheduler/tests/test_task_types/test_task_model.py @@ -231,7 +231,7 @@ def test_parse_kwargs(self): taskarg_factory(TaskKwarg, key="key3", arg_type="bool", val=True, content_object=task) taskarg_factory(TaskKwarg, key="key4", arg_type="datetime", val=date, content_object=task) kwargs = task.parse_kwargs() - self.assertEqual(kwargs, {'key1': "one", 'key2': 2, 'key3': True, 'key4': date}) + self.assertEqual(kwargs, {"key1": "one", "key2": 2, "key3": True, "key4": date}) def test_callable_args_and_kwargs(self): task = task_factory(self.task_type, callable="scheduler.tests.jobs.test_args_kwargs") @@ -418,7 +418,7 @@ def test_admin_single_delete(self): self.assertTrue(task.is_scheduled()) prev_executions_count = len(_get_executions(task)) url = reverse("admin:scheduler_task_delete", args=[task.pk]) - data = {'post': "yes"} + data = {"post": "yes"} # act res = self.client.post(url, data=data, follow=True) # assert