Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
126134f2
Unverified
Commit
126134f2
authored
Aug 02, 2019
by
Hongkun Yu
Committed by
GitHub
Aug 02, 2019
Browse files
Update presubmit.sh (#7366)
old lint is no longer used.
parent
1921a3b5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
27 deletions
+0
-27
official/utils/testing/scripts/presubmit.sh
official/utils/testing/scripts/presubmit.sh
+0
-27
No files found.
official/utils/testing/scripts/presubmit.sh
View file @
126134f2
...
@@ -26,33 +26,6 @@ MODEL_ROOT="$(pwd)"
...
@@ -26,33 +26,6 @@ MODEL_ROOT="$(pwd)"
export
PYTHONPATH
=
"
$PYTHONPATH
:
${
MODEL_ROOT
}
"
export
PYTHONPATH
=
"
$PYTHONPATH
:
${
MODEL_ROOT
}
"
lint
()
{
local
exit_code
=
0
RC_FILE
=
"official/utils/testing/pylint.rcfile"
PROTO_SKIP
=
"DO
\s
NOT
\s
EDIT!"
echo
"===========Running lint test============"
for
file
in
`
find official/
-name
'*.py'
!
-name
'*test.py'
-print
`
do
if
grep
${
PROTO_SKIP
}
${
file
}
;
then
echo
"Linting
${
file
}
(Skipped: Machine generated file)"
else
echo
"Linting
${
file
}
"
pylint
--rcfile
=
"
${
RC_FILE
}
"
"
${
file
}
"
||
exit_code
=
$?
fi
done
# More lenient for test files.
for
file
in
`
find official/
-name
'*test.py'
-print
`
do
echo
"Linting
${
file
}
"
pylint
--rcfile
=
"
${
RC_FILE
}
"
--disable
=
missing-docstring,protected-access
"
${
file
}
"
||
exit_code
=
$?
done
return
"
${
exit_code
}
"
}
py_test
()
{
py_test
()
{
local
PY_BINARY
=
"
$1
"
local
PY_BINARY
=
"
$1
"
local
exit_code
=
0
local
exit_code
=
0
...
...
Write
Preview
Markdown
is supported
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