Update hacking version

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

Change-Id: I95d62bbce7fe20dd2f9ec8a96cdffeeefcda75be
This commit is contained in:
ZhijunWei 2018-12-28 22:52:08 +08:00
parent 4f24d023c5
commit c9b464c099
4 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
oslo.serialization Style Commandments
======================================================
=====================================
Read the OpenStack Style Commandments https://docs.openstack.org/hacking/latest
Read the OpenStack Style Commandments https://docs.openstack.org/hacking/latest

View File

@ -7,9 +7,9 @@ Team and repository tags
.. Change things from this point on
====================
===================
oslo.serialization
====================
===================
.. image:: https://img.shields.io/pypi/v/oslo.serialization.svg
:target: https://pypi.org/project/oslo.serialization/

View File

@ -53,8 +53,8 @@ _nasty_type_tests = [inspect.ismodule, inspect.isclass, inspect.ismethod,
inspect.iscode, inspect.isbuiltin, inspect.isroutine,
inspect.isabstract]
_simple_types = ((six.text_type,) + six.integer_types
+ (type(None), bool, float))
_simple_types = ((six.text_type,) + six.integer_types +
(type(None), bool, float))
def to_primitive(value, convert_instances=False, convert_datetime=True,

View File

@ -1,7 +1,7 @@
# The order of packages is significant, because pip processes them in the order
# 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
ipaddress>=1.0.17;python_version<'3.3' # PSF
mock>=2.0.0 # BSD
netaddr>=0.7.18 # BSD