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:
parent
02fac6e1c0
commit
c0d08e5212
1 changed files with 1 additions and 1 deletions
|
|
@ -180,7 +180,7 @@ class IntelCycloneVBinaryRunner(ZephyrBinaryRunner):
|
|||
|
||||
def to_num(self, 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 = int(num_match.group(0))
|
||||
|
|
|
|||
Loading…
Reference in a new issue