zephyr/scripts/west_commands
Ulf Magnusson ba312fe844 scripts: Remove unnecessary () around if/while conditions in Python
Not needed in Python. Detected by check C0325 in pylint3.

Also replace an

  if len(tag):

with just

  if tag:

Empty strings, byte strings, lists, etc., are falsy in Python.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-03-26 07:59:59 -05:00
..
runners scripts: Remove unnecessary () around if/while conditions in Python 2019-03-26 07:59:59 -05:00
tests scripts: Remove extra trailing newlines from Python scripts 2019-03-26 07:53:08 -05:00
README.txt
build.py west: commands: build: Specify source dir without a flag 2019-03-08 21:19:42 +01:00
debug.py
flash.py
run_common.py scripts: west_commands: refactor run_common.py 2019-02-07 08:44:19 -05:00
sign.py west: sign.py: usability fixes 2019-02-15 21:07:10 +01:00
zephyr_ext_common.py scripts: west_commands: refactor run_common.py 2019-02-07 08:44:19 -05:00

README.txt

This directory contains implementations for west commands which are
tightly coupled to the zephyr tree. Currently, those are the build,
flash, and debug commands.

Before adding more here, consider whether you might want to put new
extensions in upstream west. For example, any commands which operate
on the multi-repo need to be in upstream west, not here. Try to limit
what goes in here to just those files that change along with Zephyr
itself.

When extending this code, please keep the unit tests (in tests/) up to
date. You can run the tests with this command from this directory:

$ PYTHONPATH=$(west list --format="{abspath}" west)/src:$PWD py.test

Windows users will need to find the path to .west/west/src in their
Zephyr installation, then run something like this:

> cmd /C "set PYTHONPATH=path\to\.west\west\src:path\to\zephyr\scripts\west_commands && py.test"

Note that these tests are run as part of Zephyr's CI when submitting
an upstream pull request, and pull requests which break the tests
cannot be merged.

Thanks!