Browse Source

Update hacking version

Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I8c82e52e03b2489aca0b70de761da5ac328c7b9c
tags/1.29.2^2
ZhijunWei 11 months ago
parent
commit
8171c03846
5 changed files with 11 additions and 11 deletions
  1. +1
    -1
      HACKING.rst
  2. +5
    -5
      oslo_reports/opts.py
  3. +2
    -2
      oslo_reports/tests/test_guru_meditation_report.py
  4. +2
    -2
      oslo_reports/views/xml/generic.py
  5. +1
    -1
      test-requirements.txt

+ 1
- 1
HACKING.rst View File

@@ -1,4 +1,4 @@
oslo.reports Style Commandments
======================================================
===============================

Read the OpenStack Style Commandments https://docs.openstack.org/hacking/latest/

+ 5
- 5
oslo_reports/opts.py View File

@@ -10,17 +10,17 @@
# License for the specific language governing permissions and limitations
# under the License.

__all__ = [
'list_opts',
'set_defaults',
]

import copy

from oslo_config import cfg

from oslo_reports._i18n import _

__all__ = [
'list_opts',
'set_defaults',
]


_option_group = 'oslo_reports'


+ 2
- 2
oslo_reports/tests/test_guru_meditation_report.py View File

@@ -52,8 +52,8 @@ class FakeVersionObj(object):

def skip_body_lines(start_line, report_lines):
curr_line = start_line
while (len(report_lines[curr_line]) == 0
or report_lines[curr_line][0] != '='):
while (len(report_lines[curr_line]) == 0 or
report_lines[curr_line][0] != '='):
curr_line += 1

return curr_line

+ 2
- 2
oslo_reports/views/xml/generic.py View File

@@ -68,8 +68,8 @@ class KeyValueView(object):
if isinstance(rootmodel, col.Mapping):
for key in sorted(rootmodel):
res.append(serialize(rootmodel[key], key))
elif (isinstance(rootmodel, col.Sequence)
and not isinstance(rootmodel, six.string_types)):
elif (isinstance(rootmodel, col.Sequence) and
not isinstance(rootmodel, six.string_types)):
for val in sorted(rootmodel, key=str):
res.append(serialize(val, 'item'))
elif ET.iselement(rootmodel):

+ 1
- 1
test-requirements.txt View File

@@ -2,7 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.

hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
hacking>=1.1.0,<1.2.0 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0


Loading…
Cancel
Save