From 2e73c89d46259ed5703a507a6adbae216ca1c807 Mon Sep 17 00:00:00 2001 From: Leonardo Cavallucci Date: Fri, 25 Aug 2023 12:39:40 +0200 Subject: [PATCH] Fix ruff liting --- app_helper/main.py | 2 +- changes/232.bugfix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changes/232.bugfix diff --git a/app_helper/main.py b/app_helper/main.py index a714eec..969f1ec 100644 --- a/app_helper/main.py +++ b/app_helper/main.py @@ -105,7 +105,7 @@ def test(test_labels, application, failfast=False, test_runner=None, runner_opti test_labels = ["tests"] elif os.path.exists(os.path.join(application, "tests")): test_labels = ["%s.tests" % application] - elif type(test_labels) is str: # pragma: no cover + elif isinstance(test_labels, str): # pragma: no cover test_labels = [test_labels] runner_options = runner_options or [] return _test_run_worker(test_labels, test_runner, failfast, runner_options, verbose) diff --git a/changes/232.bugfix b/changes/232.bugfix new file mode 100644 index 0000000..c1a37d4 --- /dev/null +++ b/changes/232.bugfix @@ -0,0 +1 @@ +Fix ruff linting