Skip to content

Commit

Permalink
style: beautify 6b2fc8c
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Dec 12, 2023
1 parent 6b2fc8c commit 9bf69d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion semantic_release/cli/commands/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,6 @@ def version( # noqa: C901
except GitCommandError:
log.warning("Failed to add path (%s) to index", updated_path)


def custom_git_environment() -> ContextManager[None]:
"""
git.custom_environment is a context manager but
Expand Down
4 changes: 3 additions & 1 deletion tests/command_line/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def test_not_a_release_branch_exit_code_with_strict(
def test_not_a_release_branch_detached_head_exit_code(
repo_with_git_flow_angular_commits, cli_runner
):
expected_err_msg = "Detached HEAD state cannot match any release groups; no release will be made"
expected_err_msg = (
"Detached HEAD state cannot match any release groups; no release will be made"
)

# cause repo to be in detached head state without file changes
repo_with_git_flow_angular_commits.git.checkout("HEAD", "--detach")
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/example_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def hello_world() -> None:
version_py = example_dir / "_version.py"
version_py.write_text(
dedent(
f'''
f"""
__version__ = "{EXAMPLE_PROJECT_VERSION}"
'''
"""
)
)
gitignore = tmp_path / ".gitignore"
Expand Down

0 comments on commit 9bf69d7

Please sign in to comment.