third_party.pigweed.src/pw_presubmit
Keir Mierle 84d28f57b8 pw_presubmit: Tweaks to format warnings
Adds a copy-and-pastable command to fix formatting issues. Example:

$ pw presubmit
(... output omitted ...)
┏━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━┓
┃  14/15 │ Python format                                           │  43 files ┃
20191213 16:16:13 WRN Found 4 files with formatting errors. Format changes:

Change-Id: I9ea9058884dd32171fb7d8690ea2ffc2c2761e54
--- pw_bloat/py/bloat_output.py	(original)
+++ pw_bloat/py/bloat_output.py	(reformatted)
@@ -32,6 +32,7 @@
     @abc.abstractmethod
     def diff(self) -> str:

(... output omitted ...)

20191216 10:03:24 WRN To fix formatting, run:

  pw format --fix pw_bloat/py/bloat.py
  pw format --fix pw_bloat/py/bloat_output.py
  pw format --fix pw_presubmit/py/pw_presubmit/install_hook.py
  pw format --fix pw_protobuf_compiler/BUILD.gn

┃        │                                                         │           ┃
┃ FAILED │ Python format                                           │    0:00.5 ┃
┗━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━┛

Change-Id: I15a0fd442768b8af74920337eba911cc2066a80b
2019-12-16 10:04:41 -08:00
..
py pw_presubmit: Tweaks to format warnings 2019-12-16 10:04:41 -08:00
BUILD.gn Expand docs for a few modules 2019-12-09 17:13:47 -08:00
docs.rst Expand docs for a few modules 2019-12-09 17:13:47 -08:00
README.md Expand docs for a few modules 2019-12-09 17:13:47 -08:00

pw_presubmit: Tools for running presubmit checks