diff --git a/packages/google-cloud-documentai/google/cloud/documentai_v1/types/document_io.py b/packages/google-cloud-documentai/google/cloud/documentai_v1/types/document_io.py index 493827a72442..23ef7fe8ede6 100644 --- a/packages/google-cloud-documentai/google/cloud/documentai_v1/types/document_io.py +++ b/packages/google-cloud-documentai/google/cloud/documentai_v1/types/document_io.py @@ -267,7 +267,7 @@ class OcrConfig(proto.Message): disable_character_boxes_detection (bool): Turn off character box detector in OCR engine. Character box detection is enabled by - default in OCR 2.0+ processors. + default in OCR 2.0 (and later) processors. premium_features (google.cloud.documentai_v1.types.OcrConfig.PremiumFeatures): Configurations for premium OCR features. """ @@ -299,7 +299,8 @@ class PremiumFeatures(proto.Message): Attributes: enable_selection_mark_detection (bool): Turn on selection mark detector in OCR - engine. Only available in OCR 2.0+ processors. + engine. Only available in OCR 2.0 (and later) + processors. compute_style_info (bool): Turn on font identification model and return font style information. diff --git a/packages/google-cloud-documentai/google/cloud/documentai_v1/types/document_processor_service.py b/packages/google-cloud-documentai/google/cloud/documentai_v1/types/document_processor_service.py index 4f23e4173e43..4a3c8dbeb9ff 100644 --- a/packages/google-cloud-documentai/google/cloud/documentai_v1/types/document_processor_service.py +++ b/packages/google-cloud-documentai/google/cloud/documentai_v1/types/document_processor_service.py @@ -103,8 +103,8 @@ class ProcessOptions(proto.Message): This field is a member of `oneof`_ ``page_range``. from_start (int): - Only process certain pages from the start, - process all if the document has less pages. + Only process certain pages from the start. + Process all if the document has fewer pages. This field is a member of `oneof`_ ``page_range``. from_end (int): diff --git a/packages/google-cloud-documentai/noxfile.py b/packages/google-cloud-documentai/noxfile.py index 822eb41debf3..b5020dd1873b 100644 --- a/packages/google-cloud-documentai/noxfile.py +++ b/packages/google-cloud-documentai/noxfile.py @@ -29,8 +29,10 @@ BLACK_VERSION = "black[jupyter]==23.7.0" ISORT_VERSION = "isort==5.11.0" + LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"] + DEFAULT_PYTHON_VERSION = "3.9" UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.7", "3.8", "3.9", "3.10", "3.11"] @@ -89,6 +91,7 @@ def lint(session): "--check", *LINT_PATHS, ) + session.run("flake8", "google", "tests")