Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk committed Sep 30, 2024
1 parent 7e9ab1c commit a841464
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions core/dbt/contracts/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ def delete_from_unrendered_configs(self, yaml_key, name):

if not self.unrendered_configs[yaml_key]:
del self.unrendered_configs[yaml_key]

def add_vars(self, vars: Dict[str, Any], yaml_key: str, name: str) -> None:
if yaml_key not in self.vars:
self.vars[yaml_key] = {}
Expand Down
6 changes: 2 additions & 4 deletions tests/unit/contracts/graph/test_nodes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from argparse import Namespace
import pickle
import re
from argparse import Namespace
from dataclasses import replace

import pytest
Expand All @@ -27,9 +27,7 @@

@pytest.fixture
def args_for_flags() -> Namespace:
return Namespace(
state_modified_compare_vars=False
)
return Namespace(state_modified_compare_vars=False)


def norm_whitespace(string):
Expand Down
4 changes: 1 addition & 3 deletions tests/unit/contracts/graph/test_nodes_parsed.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@

@pytest.fixture
def args_for_flags() -> Namespace:
return Namespace(
send_anonymous_usage_stats=False, state_modified_compare_vars=False
)
return Namespace(send_anonymous_usage_stats=False, state_modified_compare_vars=False)


@pytest.fixture
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/graph/test_selector_methods.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from argparse import Namespace
import copy
from argparse import Namespace
from dataclasses import replace
from pathlib import Path
from unittest import mock
Expand Down Expand Up @@ -648,6 +648,7 @@ def previous_state(manifest):
def args_for_flags():
return Namespace(state_modified_compare_vars=False)


def add_node(manifest, node):
manifest.nodes[node.unique_id] = node

Expand Down

0 comments on commit a841464

Please sign in to comment.