6 Commits

Author SHA1 Message Date
Takashi Kajinami
d9b1b5ad8e Bump hacking
hacking 3.0.x is too old.

Change-Id: I21778b05eea73ac3c6b5a83727e8636d0bf4752e
2024-01-27 22:30:46 +09:00
Takashi Kajinami
6d34865522 Remove six
Python 2 is no longer supported, thus usage of six can be removed.

Also, This removes B314 test from documentation because its actual
implementation was already removed[1].

[1] 9dbeefb55eb55a9baa481ec6d6293527d46e04a5

Change-Id: Ib01714e6462470dd5c3f6f06b52a3afeff573696
2022-10-28 14:02:00 +02:00
Stephen Finucane
029233a1a4 Remove unnecessary hacking checks
The B319 check to ensure no use of xrange is not an issue in a Python
3-only codebase, while the unittest assert-focused B311, B312 and B321
checks duplicate H203, H204 and H203 (again) from hacking respectively.

An unnecessary 'py3pep8' tox environment is removed since the standard
'pep8' environment uses Python 3 now.

Change-Id: I8eb8c6accd1c2f2c7851a08b372235699a971ad9
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-09-26 15:24:51 +00:00
Andreas Jaeger
9dbeefb55e Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found by updated hacking version.

Update local hacking checks for new flake8, remove
test B314 since that tests difference between Python 2 and 3,
there's no need to advise using six anymore.
Use oslotest.base directly, this fixes the hacking tests.

Remove ddt usage in testsuite, it does not work with current hacking
version anymore.

Change-Id: Iee4584c6fde08728c017468d9de1db73f2c79d8d
2020-10-12 21:20:06 +02:00
Jeremy Liu
3099cd8050 Remove log translation related check
Since we're preparing to remove log translation from project, we
should remove translation check to ensure tests pass.

For log translation removal, see link [1][2].

[1] http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
[2] http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: I7d3bd59cf95d9e10c2d578b63dc60313f1d09282
2017-03-30 09:25:20 +08:00
Jeremy Liu
dea8754c6d Introduce hacking check to Barbican
Add hacking check to ensure we use proper rules and follow
community guideline [1].

[1] http://docs.openstack.org/developer/hacking/

Change-Id: I61e366969385aa044aea9d9678fbc91d32325497
2016-12-03 19:28:29 +08:00