diff options
author | John L. Villalovos <john.l.villalovos@intel.com> | 2016-11-09 05:20:56 -0800 |
---|---|---|
committer | John L. Villalovos <john.l.villalovos@intel.com> | 2016-11-09 05:20:56 -0800 |
commit | 6f53a1822f88b2e401d58369ef9a5a12ffece7fd (patch) | |
tree | f1329724a91a35bcca4ba8d32a22c2cb4d57d5c6 | |
parent | 4bb734f90e72b3e3db1bdad11202bed3edf88dc1 (diff) | |
download | python-ironicclient-6f53a1822f88b2e401d58369ef9a5a12ffece7fd.tar.gz |
Update to hacking 0.12.0 and use new checks
Use hacking 0.12.0
Use the new checks that are available:
[H106] Don’t put vim configuration in source files.
[H203] Use assertIs(Not)None to check for None.
[H904] Delay string interpolations at logging calls.
No changes were needed to the code to pass the new checks.
Change-Id: I348a9ef60449fc3d5981013f0be3bfd66d503f6e
-rw-r--r-- | test-requirements.txt | 2 | ||||
-rw-r--r-- | tox.ini | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/test-requirements.txt b/test-requirements.txt index 5a1e09d..2c496fd 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,7 +1,7 @@ # The order of packages is significant, because pip processes them in the order # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -hacking<0.12,>=0.11.0 # Apache-2.0 +hacking<0.13,>=0.12.0 # Apache-2.0 coverage>=4.0 # Apache-2.0 doc8 # Apache-2.0 fixtures>=3.0.0 # Apache-2.0/BSD @@ -50,6 +50,10 @@ commands = [flake8] ignore = exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools +# [H106] Don’t put vim configuration in source files. +# [H203] Use assertIs(Not)None to check for None. +# [H904] Delay string interpolations at logging calls. +enable-extensions=H106,H203,H904 [hacking] import_exceptions = testtools.matchers |