Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 28, 2024
1 parent 06e2394 commit 6a39d2d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tests/unit/test_bake_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,18 @@ def test_flow_config_with_comments(cookies: Cookies, preserve_comments: str) ->
live_file_content = Path(".neuro/live.yml").read_text()
project_file_content = Path(".neuro/project.yml").read_text()

l_com_exists = any([comment_regex.match(line) is not None for line in live_file_content.splitlines()])
p_com_exists = any([comment_regex.match(line) is not None for line in project_file_content.splitlines()])
l_com_exists = any(
[
comment_regex.match(line) is not None
for line in live_file_content.splitlines()
]
)
p_com_exists = any(
[
comment_regex.match(line) is not None
for line in project_file_content.splitlines()
]
)
if preserve_comments == "yes":
assert l_com_exists, ".neuro/live.yml file does not contain comments"
assert p_com_exists, ".neuro/project.yml file does not contain comments"
Expand Down

0 comments on commit 6a39d2d

Please sign in to comment.