From fb165b6e9beae567e0ab4f8714e9a3014b503f70 Mon Sep 17 00:00:00 2001 From: Bu Sun Kim Date: Thu, 28 May 2020 20:20:14 +0000 Subject: [PATCH] chore: update default ignores for Python libraries --- synthtool/gcp/templates/python_library/.flake8 | 2 ++ synthtool/gcp/templates/python_library/.gitignore | 2 ++ synthtool/gcp/templates/python_library/MANIFEST.in | 3 +++ 3 files changed, 7 insertions(+) diff --git a/synthtool/gcp/templates/python_library/.flake8 b/synthtool/gcp/templates/python_library/.flake8 index 20fe9bda2..ed9316381 100644 --- a/synthtool/gcp/templates/python_library/.flake8 +++ b/synthtool/gcp/templates/python_library/.flake8 @@ -21,6 +21,8 @@ exclude = # Exclude generated code. **/proto/** **/gapic/** + **/services/** + **/types/** *_pb2.py # Standard linting exemptions. diff --git a/synthtool/gcp/templates/python_library/.gitignore b/synthtool/gcp/templates/python_library/.gitignore index 3fb06e09c..b87e1ed58 100644 --- a/synthtool/gcp/templates/python_library/.gitignore +++ b/synthtool/gcp/templates/python_library/.gitignore @@ -10,6 +10,7 @@ dist build eggs +.eggs parts bin var @@ -49,6 +50,7 @@ bigquery/docs/generated # Virtual environment env/ coverage.xml +sponge_log.xml # System test environment variables. system_tests/local_test_setup diff --git a/synthtool/gcp/templates/python_library/MANIFEST.in b/synthtool/gcp/templates/python_library/MANIFEST.in index 68855abc3..e9e29d120 100644 --- a/synthtool/gcp/templates/python_library/MANIFEST.in +++ b/synthtool/gcp/templates/python_library/MANIFEST.in @@ -20,3 +20,6 @@ recursive-include google *.json *.proto recursive-include tests * global-exclude *.py[co] global-exclude __pycache__ + +# Exclude scripts for samples readmegen +prune scripts/readme-gen \ No newline at end of file