We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c73706 commit 7859c6fCopy full SHA for 7859c6f
check_all.sh
@@ -0,0 +1,15 @@
1
+#! /bin/sh
2
+set -e
3
+echo "black check"
4
+black . --check
5
+echo "mypy check"
6
+mypy tensorcircuit
7
+echo "pylint check"
8
+pylint tensorcircuit tests examples/*.py
9
+echo "pytest check"
10
+pytest -n auto --cov=tensorcircuit -vv -W ignore::DeprecationWarning
11
+# for test on gpu machine, please set `export TF_FORCE_GPU_ALLOW_GROWTH=true` for tf
12
+# and `export XLA_PYTHON_CLIENT_PREALLOCATE=false` for jax to avoid OOM in testing
13
+echo "sphinx check"
14
+cd docs && sphinx-build source build/html && sphinx-build source -D language="zh" build/html_cn
15
+echo "all checks passed, congratulation! 💐"
0 commit comments