Skip to content

Commit

Permalink
linting code using black formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-tmathew committed Apr 3, 2024
1 parent 908587d commit ff59dc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions schemachange/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ def get_all_scripts_recursively(root_directory, verbose):
all_files = dict()
all_versions = list()
# Walk the entire directory structure recursively
for (directory_path, directory_names, file_names) in os.walk(root_directory):
for directory_path, directory_names, file_names in os.walk(root_directory):
for file_name in file_names:

file_full_path = os.path.join(directory_path, file_name)
Expand Down Expand Up @@ -1008,7 +1008,7 @@ def inner_extract_dictionary_secrets(
extracted_secrets: Set[str] = set()

if dictionary:
for (key, value) in dictionary.items():
for key, value in dictionary.items():
if isinstance(value, dict):
if key == "secrets":
extracted_secrets = (
Expand Down
5 changes: 2 additions & 3 deletions tests/test_cli_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,11 @@ def test_get_change_history_table_details_given__acceptable_values_produces_full
):
assert schemachange.cli.get_change_history_table_details(cht) == expected


@pytest.mark.parametrize(
"cht", [("fifth.fourth.third.two.one"), ("fourth.third.two.one")]
)
def test_get_change_history_table_details_given__unacceptable_values_raises_error(
cht
):
def test_get_change_history_table_details_given__unacceptable_values_raises_error(cht):
with pytest.raises(ValueError) as e:
schemachange.cli.get_change_history_table_details(cht)

Expand Down

0 comments on commit ff59dc6

Please sign in to comment.