Files
zephyr/scripts/west_commands/simulate.py
Pieter De Gendt e81bacd361 scripts: west_commands: Extend ruff config in pyproject.toml
Now that the west_commands directory has a pyproject.toml configuration
file, it should consider local packages for first party imports.

Make sure the top-level ruff config is extended, and fix some import
sorting.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-06 10:30:32 +01:00

31 lines
812 B
Python

# Copyright (c) 2024 Antmicro <www.antmicro.com>
#
# SPDX-License-Identifier: Apache-2.0
from west.commands import WestCommand
from run_common import add_parser_common, do_run_common
EXPORT_DESCRIPTION = '''\
Simulate the board on a runner of choice using generated artifacts.
'''
class Simulate(WestCommand):
def __init__(self):
super().__init__(
'simulate',
# Keep this in sync with the string in west-commands.yml.
'simulate board',
EXPORT_DESCRIPTION,
accepts_unknown_args=True)
self.runner_key = 'sim-runner' # in runners.yaml
def do_add_parser(self, parser_adder):
return add_parser_common(self, parser_adder)
def do_run(self, my_args, runner_args):
do_run_common(self, my_args, runner_args)