changeset 2002:053190199959

tests: add flake8 check This test will hopefully help prevent style errors. To be determined: which errors / warnings to ignore?
author Sean Farley <sean@farley.io>
date Tue, 30 Aug 2016 14:05:36 -0700
parents ddfc87788d5c
children 61d595ce8994
files tests/test-check-pyflakes.t
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-check-pyflakes.t	Sun May 15 22:23:16 2016 -0300
+++ b/tests/test-check-pyflakes.t	Tue Aug 30 14:05:36 2016 -0700
@@ -10,3 +10,6 @@
   $ hg locate 'set:**.py or grep("^!#.*python")' 2>/dev/null \
   > | xargs pyflakes 2>/dev/null  
 
+run flake8 if it exists; if it doesn't, then just skip
+
+  $ type flake8 >/dev/null 2>/dev/null && hg files -0 'glob:**.py' | xargs -0 flake8 || true