Merge "Adds Flake8 job to the lint check"

This commit is contained in:
Jenkins 2015-04-13 18:08:07 +00:00 committed by Gerrit Code Review
commit e275632229

View File

@ -32,6 +32,13 @@ else
pip2 install ansible-lint || pip install ansible-lint
fi
# Run hacking/flake8 check for all python files
# Ignores the following rules due to how ansible modules work in general
# F403 'from ansible.module_utils.basic import *' used; unable to detect undefined names
# H303 No wildcard (*) import.
flake8 --ignore=F403,H303 $(grep -rln -e '^#!/usr/bin/env python' -e '^#!/bin/python' * )
# Create keys if they don't already exist.
ssh_key_create