diff --git a/semantic_release/cli/commands/version.py b/semantic_release/cli/commands/version.py index 510f3997c..0039800dc 100644 --- a/semantic_release/cli/commands/version.py +++ b/semantic_release/cli/commands/version.py @@ -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 diff --git a/tests/command_line/test_main.py b/tests/command_line/test_main.py index 671a3637f..0c8d3c5f6 100644 --- a/tests/command_line/test_main.py +++ b/tests/command_line/test_main.py @@ -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") diff --git a/tests/fixtures/example_project.py b/tests/fixtures/example_project.py index c0ec12c0a..332059003 100644 --- a/tests/fixtures/example_project.py +++ b/tests/fixtures/example_project.py @@ -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"