diff --git a/scripts/generate_json_docs.py b/scripts/generate_json_docs.py index f8376568d8e5..cda8a374ebe2 100644 --- a/scripts/generate_json_docs.py +++ b/scripts/generate_json_docs.py @@ -653,5 +653,6 @@ def main(): if args.show_toc: print(json.dumps(toc, indent=4)) + if __name__ == '__main__': main() diff --git a/tox.ini b/tox.ini index 4ef739653dfc..37b5d7d75cdd 100644 --- a/tox.ini +++ b/tox.ini @@ -196,7 +196,7 @@ deps = passenv = {[testenv:docs]passenv} -[pep8] +[pycodestyle] exclude = docs/conf.py, bigtable/google/cloud/bigtable/_generated/*, @@ -211,7 +211,7 @@ commands = python {toxinidir}/scripts/run_pylint.py deps = {[testing]deps} - pycodestyle + pycodestyle >= 2.1.0 pylint >= 1.6.4 passenv = {[testenv:system-tests]passenv}