Commit Graph

9 Commits

Author SHA1 Message Date
Wyatt Hepler
e0aef0ab4e pw_presubmit: Enable mypy and get it passing
- Fix several typing issues.
- Disable type checking in several places where mypy wasn't working
  correctly.
- Enable mypy.
- Execute individual steps in the same order as they are provided with
  --step.

Change-Id: I229cf8ee39a4db5067c1923b4acfc5fcd164f733
2020-03-06 23:13:35 +00:00
Rob Mohr
ca0045e61d Use pathlib more in doctor
Change-Id: I787c1c5aa878f205d2845718b60c2d471de667a4
2020-03-02 09:46:24 -08:00
Rob Mohr
3867c4f95f Add check for virtual env to doctor
Change-Id: If2aca9af65809828a8070603c618100856c6580f
2020-03-02 09:46:20 -08:00
Rob Mohr
6a654257a6 doctor: normalize paths before comparing
Change-Id: I4e0f9fd2a7dcf942e6ce669528a8b6118ca9286e
2020-02-21 17:06:01 +00:00
Rob Mohr
6dd9169abd doctor: skip checks for Linux/Mac-only pkgs
Skip checks for CIPD packages not available for Windows.

Change-Id: If5eb3513e21f4287a026609094ca1e9ddefba5ff
2020-02-21 01:25:33 +00:00
Rob Mohr
d35ec86a88 Add sanity check to doctor
Also show PATH value on certain failures.

Change-Id: Iac9cb03e78b8ca74f08a7b73939ec3cda9ababc7
2020-02-20 23:28:11 +00:00
Rob Mohr
e07c20d9eb Add output and run doctor in env setup
Echo info about steps in generated env setup script.

Also run 'pw doctor' at end of env setup script.

Non-warning/error output can be suppressed by setting
PW_ENVSETUP_QUIET to '1'.

Change-Id: Ief333779dabbdb4613db05726d00f80d3fca325a
2020-01-28 15:01:03 -08:00
Rob Mohr
d527f91e21 doctor: check for 'cipd' in PATH.
Also add the cipd installation folder to PATH.

Change-Id: I871b466079250473c41adcba61bd8787305c795f
2020-01-07 09:18:57 -08:00
Rob Mohr
f82e7a843c Add 'pw doctor'.
Add 'pw doctor' command to check environment is correctly set up
for pigweed. For now contains minimal checks.

Change-Id: Icb132c89bb272b52c57dae0451b24966b48d4e90
Bug: 28
2020-01-03 22:28:05 +00:00