Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Fix Lint Issue #8185

Merged
merged 1 commit into from
Jun 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/tvm/driver/tvmc/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

@register_parser
def add_compile_parser(subparsers):
""" Include parser for 'compile' subcommand """
"""Include parser for 'compile' subcommand"""

parser = subparsers.add_parser("compile", help="compile a model.")
parser.set_defaults(func=drive_compile)
Expand Down
8 changes: 4 additions & 4 deletions tests/lint/git-black.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ if [[ "$#" -lt 1 ]]; then
exit 1
fi

# required to make black's dep click to work
export LC_ALL=C.UTF-8
export LANG=C.UTF-8

if [ ! -x "$(command -v black)" ]; then
echo "Cannot find black"
exit 1
Expand All @@ -54,10 +58,6 @@ if [ -z ${FILES+x} ]; then
fi
echo "Files: $FILES"

# required to make black's dep click to work
export LC_ALL=C.UTF-8
export LANG=C.UTF-8

if [[ ${INPLACE_FORMAT} -eq 1 ]]; then
echo "Running black on Python files against revision" $1:
CMD=( "black" "${FILES[@]}" )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def run_model_graph(TestClass):

def test_add_one():
class AddOne(tf.Module):
""" simple function to test x=x+1; scalar as input"""
"""simple function to test x=x+1; scalar as input"""

def get_input(self):
return np.array(1.0, dtype="float32")
Expand Down