Commit Graph

5 Commits

Author SHA1 Message Date
Alexei Frolov
7b8528e85d pw_cli: Define Pigweed environment variables
This change adds an environment module to pw_cli which defines all of
the environment variables used by Pigweed.
A new variable named PW_USE_COLOR added, forcing the use of log colors
even if not printing to a TTY. This is set by the watch command for its
subprocesses.
The check for the PW_SUBPROCESS variable in logging is updated to use
the environment module.

Change-Id: I84007691f3ae9bb262c6bf6471afa43db831268f
2020-01-03 23:57:15 +00:00
Alexei Frolov
77e7a61be2 pw_cli: Add envparse module
This change adds a Python module which implements an environment
variable parser that allows defining and typing environment variables
for a Python program.

Change-Id: Icda61c8dabcf4e4bc6902707f6ebed9c50d31d71
2020-01-03 01:43:47 +00:00
Alexei Frolov
bbf164c985 Add pw_protobuf module
This change adds a pw_protobuf module containing a lightweight protobuf
wire format encoder. The encoder comes with a Python script that plugs
into protoc to generate C++ classes from Protobuf files that wrap its
functionality.

Bug: 20

Change-Id: I867655ab64c2f6ddd2a731054b1fbe7ccc97ba70
2019-12-18 21:29:17 +00:00
Wyatt Hepler
8635af956b Update Sphinx conf.py; add autodoc extension
Change-Id: I4754d7d2203da2d9364d11aca65474eb29505fbf
2019-12-05 16:33:33 -08:00
Wyatt Hepler
b627b416f4 Add .pylintrc
Generated a default pylintrc with pylint's --generate-rcfile option and
made a few modifications:

  * Set jobs to 0 (sets to number of cores).
  * Disable fixme and subprocess-run-check.
  * Always expect LF.
  * Adjust min/max counts to avoid warnings.

Change-Id: I0a57457e39cce9191172aaa1dc694d5fb4474f0b
2019-11-27 11:18:08 -08:00