Fix pep8 job issues
It appears that some rules in jsonschema and flake8 are now more strict. This patch propose fixes, so that pep8 job passes. Change-Id: I0a7c533dd0c576e564749e5d83242fb1b050f74f
This commit is contained in:
parent
169bb381b9
commit
a3aa76698f
@ -224,7 +224,7 @@
|
||||
},
|
||||
"required-since": {
|
||||
"type": "string",
|
||||
"pattern": "[^$|^\\d{4}-\\d{2}-\\d{2}$]"
|
||||
"pattern": "^(\\d{4}-\\d{2}-\\d{2})?$"
|
||||
},
|
||||
"tests": {
|
||||
"type": "object",
|
||||
|
@ -223,7 +223,7 @@
|
||||
},
|
||||
"required-since": {
|
||||
"type": "string",
|
||||
"pattern": "[^$|^\\d{4}-\\d{2}-\\d{2}$]"
|
||||
"pattern": "^(\\d{4}-\\d{2}-\\d{2})?$"
|
||||
},
|
||||
"tests": {
|
||||
"type": "object",
|
||||
|
@ -163,7 +163,7 @@ def write_components(data, out_file):
|
||||
event=event.capitalize()))
|
||||
out_file.write("-" * (len(event) + 15) + "\n")
|
||||
|
||||
if(len(data['components'][component]['capabilities'][event]) == 0):
|
||||
if len(data['components'][component]['capabilities'][event]) == 0:
|
||||
out_file.write("None\n")
|
||||
|
||||
for req in data['components'][component]['capabilities'][event]:
|
||||
|
@ -168,7 +168,7 @@ def write_components(data, out_file):
|
||||
event=event.capitalize()))
|
||||
out_file.write("-" * (len(event) + 15) + "\n")
|
||||
|
||||
if(len(data['components'][component][event]) == 0):
|
||||
if (len(data['components'][component][event]) == 0):
|
||||
out_file.write("None\n")
|
||||
|
||||
for req in data['components'][component][event]:
|
||||
|
Loading…
Reference in New Issue
Block a user