diff options
author | Andreas Jaeger <aj@suse.com> | 2020-03-31 09:22:22 +0200 |
---|---|---|
committer | Luigi Toscano <ltoscano@redhat.com> | 2020-04-07 14:50:41 +0200 |
commit | cca4f4d0c8a33a776e17413f5fda94c088b6a233 (patch) | |
tree | e33430fb11567d00ed579c4859604a849884db79 /tox.ini | |
parent | 3cf5de75c19a998ffd1e264ae1380d99c833e752 (diff) | |
download | python-saharaclient-cca4f4d0c8a33a776e17413f5fda94c088b6a233.tar.gz |
Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Update local hacking checks for new flake8.
Note: The repo has been using an uncapped requirements, so was testing with
hacking 2.0 which disabled the old way of local testing integration.
Remove S367 and S368 since they are not working under python3
"NOTE(Kezar): This checks a good enough if we have only py2.7 supported.
As soon as we'll get py3.x we need to drop it or rewrite. You can read more
about it in dev-list archive, topic: "[hacking]proposed rules drop for 1.0"
Also, hacking now has H304 and H306 which test exactly the same.
Remove hacking and friends from lower-constraints, it's not needed
there.
Change-Id: If60682fb328359ef73dee8f2d89d51410a376677
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -82,8 +82,19 @@ show-source = true builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools -[hacking] -local-check-factory = saharaclient.tests.hacking.checks.factory +[flake8:local-plugins] +extension = + S361 = checks:import_db_only_in_conductor + S362 = checks:hacking_no_author_attr + S363 = checks:check_oslo_namespace_imports + S364 = commit_message:OnceGitCheckCommitTitleBug + S365 = commit_message:OnceGitCheckCommitTitleLength + S368 = checks:dict_constructor_with_list_copy + S373 = logging_checks:no_translate_logs + S374 = logging_checks:accepted_log_levels + S375 = checks:use_jsonutils + S360 = checks:no_mutable_default_args +paths = ./saharaclient/tests/hacking [testenv:lower-constraints] deps = |