From ae85478479eebd019d51728aecbd0711b1d8a587 Mon Sep 17 00:00:00 2001 From: Luong Anh Tuan Date: Mon, 29 Jan 2018 14:37:08 +0700 Subject: [PATCH] Enable more extensions pep8 This patch enable extensions: # [H204] Use assert(Not)Equal to check for equality. # [H205] Use assert(Greater|Less)(Equal) for comparison. Change-Id: I376f2b4e2991f7e29e743bcd1550b9945591a50b --- tox.ini | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 646263c93..682a955b8 100644 --- a/tox.ini +++ b/tox.ini @@ -64,9 +64,11 @@ commands = pifpaf -g AODH_TEST_STORAGE_URL run postgresql -- oslo_debug_helper { [flake8] ignore = exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build -# [H106] Don't put vim configuration in source files. +# [H106] Do not put vim configuration in source files. # [H203] Use assertIs(Not)None to check for None. -enable-extensions=H106,H203 +# [H204] Use assert(Not)Equal to check for equality. +# [H205] Use assert(Greater|Less)(Equal) for comparison. +enable-extensions=H106,H203,H204,H205 show-source = True [hacking]