Skip to content

Commit 91ae0bc

Browse files
committed
fix linting issues
1 parent 5c40054 commit 91ae0bc

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

dbt_contracts/contracts/matchers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,4 @@ def _match_include(self, value: str) -> bool:
133133

134134
if self.match_all:
135135
return all(pattern == value or re.match(pattern, value) for pattern in self.include)
136-
return any(pattern == value or re.match(pattern, value) for pattern in self.include)
136+
return any(pattern == value or re.match(pattern, value) for pattern in self.include)

tests/contracts/conditions/test_properties.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ def test_path_validation(model: ModelNode, faker: Faker):
2525
assert PathCondition().run(model)
2626
assert PathCondition(include=paths + [model.path]).run(model)
2727
assert not PathCondition(exclude=paths + [model.patch_path.split("://")[1]]).run(model)
28-
assert not PathCondition(include=paths + [model.path], exclude=paths + [model.patch_path.split("://")[1]]).run(model)
28+
assert not PathCondition(
29+
include=paths + [model.path], exclude=paths + [model.patch_path.split("://")[1]]
30+
).run(model)
2931

3032

3133
def test_path_condition_unifies_chunked_path_values():

0 commit comments

Comments
 (0)