Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Infra
CI Jobs
Official Devices Validator
Commits
b9d53bca
Commit
b9d53bca
authored
Oct 17, 2020
by
Henrique Pereira
Browse files
validator: Don't check for wiki yaml
Signed-off-by:
Henrique Pereira
<
hlcpereira@pixelexperience.org
>
parent
263f81ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
validator.py
View file @
b9d53bca
...
...
@@ -7,7 +7,6 @@ import operator
os
.
chdir
(
'official_devices'
)
SUGGESTIONS
=
[]
ALLOWED_VERSIONS
=
[
'eleven'
,
'ten'
,
'ten_plus'
,
'pie'
,
'pie_plus'
]
WIKI_BASE_URL
=
'https://raw.githubusercontent.com/PixelExperience/wiki/master/_data/devices'
def
test_integrity_devices
():
...
...
@@ -35,10 +34,6 @@ def test_integrity_devices():
if
not
os
.
path
.
isfile
(
f
"images/
{
codename
}
.png"
):
SUGGESTIONS
.
append
(
f
"images/
{
codename
}
.png not found for codename
{
codename
}
in devices.json for device index value
{
device_index
}
"
)
yaml
=
requests
.
head
(
f
"
{
WIKI_BASE_URL
}
/
{
codename
}
.yml"
)
if
yaml
.
status_code
!=
200
:
SUGGESTIONS
.
append
(
f
"Wiki YAML not found for codename
{
codename
}
in devices.json for device index value
{
device_index
}
"
)
if
'supported_versions'
not
in
device
:
SUGGESTIONS
.
append
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment