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
This commit is contained in:
parent
4bb734f90e
commit
6f53a1822f
|
@ -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
|
||||
|
|
4
tox.ini
4
tox.ini
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue