From f3a6c0adc3e5cb78c1a663fc686f00853729b5d7 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 28 Feb 2025 12:48:20 -0600 Subject: Fix remaining linting error. --- setup_commands/run_tests.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'setup_commands/run_tests.py') diff --git a/setup_commands/run_tests.py b/setup_commands/run_tests.py index 37d7ffa..8fb0b25 100644 --- a/setup_commands/run_tests.py +++ b/setup_commands/run_tests.py @@ -27,10 +27,11 @@ class RunTests(Command): def finalize_options(self): """Set final value of all the options once they are processed.""" if self.type not in RunTests.test_types: - raise Exception(f""" - Invalid test type (self.type) requested! - Valid types are - {tuple(RunTests.test_types)}""") + raise Exception(# pylint: disable=[broad-exception-raised] + f""" + Invalid test type (self.type) requested! + Valid types are + {tuple(RunTests.test_types)}""") if self.type != "all": self.command = f"pytest -m {self.type}_test" -- cgit 1.4.1