diff --git a/scripts/build_docs.py b/scripts/build_docs.py index dc47df224..36e80472f 100644 --- a/scripts/build_docs.py +++ b/scripts/build_docs.py @@ -43,9 +43,8 @@ FLAGS = flags.FLAGS - - def main(unused_argv): + """Run the documentation builder.""" doc_generator = generate_lib.DocGenerator( root_title="TensorFlow Quantum", diff --git a/scripts/format_all.sh b/scripts/format_all.sh index 0e374a3cc..63ea26708 100755 --- a/scripts/format_all.sh +++ b/scripts/format_all.sh @@ -14,8 +14,8 @@ # limitations under the License. # ============================================================================== echo "Doing python language formatting..." -python3 -m yapf --style=google --in-place --recursive ./benchmarks -python3 -m yapf --style=google --in-place --recursive ./tensorflow_quantum +python3 -m yapf --style=google --in-place --recursive --parallel \ + ./benchmarks ./scripts ./tensorflow_quantum echo -e "Done! \nDoing notebook formatting..." python3 ./scripts/format_ipynb.py echo -e "Done! \nDoing C++ formatting..."