Skip to content

Commit

Permalink
Modify check_file_type.py to pass the ci
Browse files Browse the repository at this point in the history
Signed-off-by: leonwanghui <wanghui71leon@gmail.com>
  • Loading branch information
leonwanghui committed Jul 14, 2020
1 parent 17bc8ec commit a7958bf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
17 changes: 17 additions & 0 deletions apps/wasm-standalone/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
<!--- Licensed to the Apache Software Foundation (ASF) under one -->
<!--- or more contributor license agreements. See the NOTICE file -->
<!--- distributed with this work for additional information -->
<!--- regarding copyright ownership. The ASF licenses this file -->
<!--- to you under the Apache License, Version 2.0 (the -->
<!--- "License"); you may not use this file except in compliance -->
<!--- with the License. You may obtain a copy of the License at -->

<!--- http://www.apache.org/licenses/LICENSE-2.0 -->

<!--- Unless required by applicable law or agreed to in writing, -->
<!--- software distributed under the License is distributed on an -->
<!--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -->
<!--- KIND, either express or implied. See the License for the -->
<!--- specific language governing permissions and limitations -->
<!--- under the License. -->

# WebAssembly Standalone for Deep Learning Framework with TVM Runtime

#### Experimental notice: This project is still *experimental* and only serves as a proof of concept for running deep learning frameworks on [WebAssembly runtime](https://github.com/bytecodealliance/wasmtime) with [TVM stack](https://tvm.apache.org/).
Expand Down
10 changes: 6 additions & 4 deletions tests/lint/check_file_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"tokens",
# interface definition
"idl",
}
}

# List of file names allowed
ALLOW_FILE_NAME = {
Expand All @@ -96,7 +96,7 @@
".scalafmt.conf",
"Cargo.lock",
"with_the_same_user",
}
}

# List of specific files allowed in relpath to <proj_root>
ALLOW_SPECIFIC_FILE = {
Expand All @@ -108,6 +108,7 @@
# cargo config
"rust/runtime/tests/test_wasm32/.cargo/config",
"apps/sgx/.cargo/config",
"apps/wasm-standalone/wasm-graph/.cargo/config",
# html for demo purposes
"web/apps/browser/rpc_server.html",
# images are normally not allowed
Expand All @@ -118,7 +119,7 @@
"docs/_static/css/tvm_theme.css",
"docs/_static/img/tvm-logo-small.png",
"docs/_static/img/tvm-logo-square.png",
}
}


def filename_allowed(name):
Expand Down Expand Up @@ -159,7 +160,7 @@ def copyright_line(line):
if line.find("Copyright " + "(c)") != -1:
return True
if (line.find("Copyright") != -1 and
line.find(" by") != -1):
line.find(" by") != -1):
return True
return False

Expand Down Expand Up @@ -233,5 +234,6 @@ def main():

print("check_file_type.py: all checks passed..")


if __name__ == "__main__":
main()

0 comments on commit a7958bf

Please sign in to comment.