Merge "Adds Flake8 job to the lint check"
This commit is contained in:
commit
e275632229
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user