From 011b43ee41583cc84ffd5dd9b57ac51ea070f9fa Mon Sep 17 00:00:00 2001 From: Jacob Beck Date: Thu, 23 Jan 2020 11:07:46 -0700 Subject: [PATCH] Add documentation for macros/analyses Refactored parsing a bit to support the idea of: - macro patches (no columns) - node patches that don't get tests (analyses) automatic commit by git-black, original commits: 23883303ff86c358a7e966fc982a91f2f82999b6 b030b4eba51d95b6cfd167095c8fa98058ae785b --- core/dbt/parser/generic_test_builders.py | 4 +--- core/dbt/parser/schemas.py | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/core/dbt/parser/generic_test_builders.py b/core/dbt/parser/generic_test_builders.py index 82486884c2b..05a755fbf9f 100644 --- a/core/dbt/parser/generic_test_builders.py +++ b/core/dbt/parser/generic_test_builders.py @@ -144,9 +144,7 @@ def quote_columns(self) -> Optional[bool]: return self.target.quote_columns @classmethod - def from_yaml_block( - cls, src: YamlBlock, target: Testable - ) -> 'TestBlock[Testable]': + def from_yaml_block(cls, src: YamlBlock, target: Testable) -> "TestBlock[Testable]": return cls( file=src.file, data=src.data, diff --git a/core/dbt/parser/schemas.py b/core/dbt/parser/schemas.py index dcc521ffc20..355186fcd69 100644 --- a/core/dbt/parser/schemas.py +++ b/core/dbt/parser/schemas.py @@ -204,9 +204,7 @@ def parse_from_dict(self, dct, validate=True) -> ParsedGenericTestNode: ParsedGenericTestNode.validate(dct) return ParsedGenericTestNode.from_dict(dct) - def parse_column_tests( - self, block: TestBlock, column: UnparsedColumn - ) -> None: + def parse_column_tests(self, block: TestBlock, column: UnparsedColumn) -> None: if not column.tests: return