diff options
author | Zuul <zuul@review.opendev.org> | 2020-04-18 12:44:22 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2020-04-18 12:44:22 +0000 |
commit | c83e37f26c621bbeaa55377e88098d2dc8564888 (patch) | |
tree | 736b4d357a74196717403bbedf28b19578c357fb /tox.ini | |
parent | db2c3131be281f3e1b83a5c9e1697b232be116da (diff) | |
parent | a27dc56f525606c1ec1046e5c1f9cc57ca1f9f11 (diff) | |
download | heat-c83e37f26c621bbeaa55377e88098d2dc8564888.tar.gz |
Merge "Update hacking for Python3"
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 24 |
1 files changed, 22 insertions, 2 deletions
@@ -107,8 +107,21 @@ commands = bandit -r heat -x tests --skip B101,B104,B107,B110,B310,B311,B404,B41 [flake8] show-source = true +# E117 over-indented +# E123 closing bracket does not match indentation of opening bracket's line +# E226 missing whitespace around arithmetic operator +# E241 multiple spaces after ',' +# E305 expected 2 blank lines after class or function definition, found 1 +# E402 module level import not at top of file +# E731 do not assign a lambda expression, use a def +# E741 ambiguous variable name 'l' +# F841 local variable 'ex' is assigned to but never used +# W503 line break before binary operator +# W504 line break after binary operator +# W605 invalid escape sequence '\ ' +ignore = E117,E123,E226,E241,E305,E402,E731,E741,F841,W503,W504,W605 exclude=.*,dist,*lib/python*,*egg,build,*convergence/scenarios/* -max-complexity=20 +max-complexity=23 [doc8] ignore = D001 @@ -116,7 +129,14 @@ ignore-path = .venv,.git,.tox,.tmp,*heat/locale*,*lib/python*,openstack_heat.egg [hacking] import_exceptions = heat.common.i18n -local-check-factory = heat.hacking.checks.factory + +[flake8:local-plugins] +extension = + Heat301 = checks:no_log_warn + Heat302 = checks:check_python3_no_iteritems + Heat303 = checks:check_python3_no_iterkeys + Heat304 = checks:check_python3_no_itervalues +paths = ./heat/hacking [testenv:debug] commands = oslo_debug_helper {posargs} |