2 Commits

Author SHA1 Message Date
John L. Villalovos
435328e54f Prevent changes to the ironic_tempest_plugin/ directory
Add a check to the PEP8 test to prevent changes to the
ironic_tempest_plugin/ directory.

This will be removed when we remove the ironic_tempest_plugin/
directory.

Change-Id: I3cdbb39ebc661652ff9ceba5f3115ac26667953b
2017-12-19 09:25:44 -08:00
Zhenguo Niu
29b37065d7 tox: make it possible to run pep8 on current patch only
This makes tox use a simple wrapper around flake8 like
Nova, which can be told to restrict the check to only
files changed in the current command. This can be invoked
in a simple manner with 'tox -epep8 -- -HEAD'. Since most
commits only touch a handful of files, this will usually
be far faster than checking all source files.

To check an entire branch for bisectability it can be
automated via

  git rebase -i master -x 'tox -epep8 -- -HEAD'

Change-Id: I75b1cfe3198b1217f8b25877714a4af47ae7069f
2016-01-05 09:55:48 +08:00