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:
Roman Popelka 2023-04-27 12:37:44 +02:00
parent 169bb381b9
commit a3aa76698f
4 changed files with 4 additions and 4 deletions

View File

@ -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",

View File

@ -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",

View File

@ -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]:

View File

@ -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]: