scripts: west_commands: runners: Fix not-is-test (E714)

Make the "not is" more readable.

See https://docs.astral.sh/ruff/rules/not-is-test/

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-11-20 12:10:50 +01:00 committed by Benjamin Cabé
parent 02fac6e1c0
commit c0d08e5212

View file

@ -180,7 +180,7 @@ class IntelCycloneVBinaryRunner(ZephyrBinaryRunner):
def to_num(self, number): def to_num(self, number):
dev_match = re.search(r"^\d*\+dev", number) dev_match = re.search(r"^\d*\+dev", number)
dev_version = not dev_match is None dev_version = dev_match is not None
num_match = re.search(r"^\d*", number) num_match = re.search(r"^\d*", number)
num = int(num_match.group(0)) num = int(num_match.group(0))