Enable more hacking-extensions

This patch enable extensions:
-[H106] Do not put vim configuration in source files.
-[H204] Use assert(Not)Equal to check for equality.
-[H205] Use assert(Greater|Less)(Equal) for comparison.

Change-Id: I7fa2c8753b2b471f44afe8ee83a4a612ed1b76a9
This commit is contained in:
Luong Anh Tuan 2018-01-29 14:59:57 +07:00 committed by Tuan Luong-Anh
parent 7c261e8ac8
commit fc64ba95c5
1 changed files with 6 additions and 3 deletions

View File

@ -164,9 +164,12 @@ filename = *.py,django.wsgi
exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,panel_template,dash_template,local_settings.py,*/local/*,*/test/test_plugins/*,.ropeproject,node_modules,openstack_dashboard/enabled/*
ignore =
# Enable the following hacking rules which are disabled by default
# H203 Use assertIs(Not)None to check for None
# H904 Delay string interpolations at logging calls
enable-extensions=H203,H904
# H106 Do not put vim configuration in source files.
# H203 Use assertIs(Not)None to check for None.
# H204 Use assert(Not)Equal to check for equality.
# H205 Use assert(Greater|Less)(Equal) for comparison.
# H904 Delay string interpolations at logging calls.
enable-extensions=H106,H203,H204,H205,H904
max-complexity = 20
# flake8-import-order configurations