Browse Source

Update hacking version

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

Change-Id: I72a882f2c33ea8c5b79625b3bb3e951204e0bba7
ZhijunWei 3 months ago
parent
commit
fb33d01882

+ 2
- 1
os_service_types/data/__init__.py View File

@@ -12,11 +12,12 @@
12 12
 # implied.
13 13
 # See the License for the specific language governing permissions and
14 14
 # limitations under the License.
15
-__all__ = ['read_data']
16 15
 
17 16
 import json
18 17
 import os
19 18
 
19
+__all__ = ['read_data']
20
+
20 21
 DATA_DIR = os.path.dirname(__file__)
21 22
 
22 23
 

+ 2
- 1
os_service_types/exc.py View File

@@ -12,11 +12,12 @@
12 12
 # implied.
13 13
 # See the License for the specific language governing permissions and
14 14
 # limitations under the License.
15
-__all__ = ['warn', 'AliasUsageWarning']
16 15
 
17 16
 import textwrap
18 17
 import warnings
19 18
 
19
+__all__ = ['warn', 'AliasUsageWarning']
20
+
20 21
 
21 22
 def warn(warning, **kwargs):
22 23
     """Emit a warning that has builtin message text."""

+ 2
- 1
os_service_types/service_types.py View File

@@ -12,13 +12,14 @@
12 12
 # implied.
13 13
 # See the License for the specific language governing permissions and
14 14
 # limitations under the License.
15
-__all__ = ['ServiceTypes']
16 15
 
17 16
 import copy
18 17
 
19 18
 import os_service_types.data
20 19
 from os_service_types import exc
21 20
 
21
+__all__ = ['ServiceTypes']
22
+
22 23
 BUILTIN_DATA = os_service_types.data.read_data('service-types.json')
23 24
 SERVICE_TYPES_URL = "https://service-types.openstack.org/service-types.json"
24 25
 

+ 1
- 1
test-requirements.txt View File

@@ -2,7 +2,7 @@
2 2
 # of appearance. Changing the order has an impact on the overall integration
3 3
 # process, which may cause wedges in the gate later.
4 4
 
5
-hacking<0.13,>=0.12.0 # Apache-2.0
5
+hacking>=1.1.0,<1.2.0 # Apache-2.0
6 6
 
7 7
 coverage!=4.4,>=4.0 # Apache-2.0
8 8
 python-subunit>=1.0.0 # Apache-2.0/BSD

Loading…
Cancel
Save