From 1326851c80df0fa10f1d9b5f38c2be01cefeff79 Mon Sep 17 00:00:00 2001 From: Christopher Wilcox Date: Wed, 28 Nov 2018 13:55:23 -0800 Subject: [PATCH] Add templates for flake8, coveragerc, noxfile, and black. (#6642) --- packages/google-cloud-translate/.coveragerc | 5 +++++ packages/google-cloud-translate/.flake8 | 1 + 2 files changed, 6 insertions(+) diff --git a/packages/google-cloud-translate/.coveragerc b/packages/google-cloud-translate/.coveragerc index a54b99aa14b7..098720f672e1 100644 --- a/packages/google-cloud-translate/.coveragerc +++ b/packages/google-cloud-translate/.coveragerc @@ -9,3 +9,8 @@ exclude_lines = pragma: NO COVER # Ignore debug-only repr def __repr__ + # Ignore abstract methods + raise NotImplementedError +omit = + */gapic/*.py + */proto/*.py diff --git a/packages/google-cloud-translate/.flake8 b/packages/google-cloud-translate/.flake8 index 1f44a90f8195..61766fa84d02 100644 --- a/packages/google-cloud-translate/.flake8 +++ b/packages/google-cloud-translate/.flake8 @@ -1,4 +1,5 @@ [flake8] +ignore = E203, E266, E501, W503 exclude = # Exclude generated code. **/proto/**