Skip to content

Commit

Permalink
style: beautify 229c647
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Feb 6, 2024
1 parent 229c647 commit c7be6e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 6 additions & 3 deletions tests/fixtures/example_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ def example_project_dir(tmp_path: Path) -> ExProjectDir:
return tmp_path.resolve()



@pytest.fixture
def change_to_ex_proj_dir(example_project_dir: ExProjectDir) -> Generator[None, None, None]:
def change_to_ex_proj_dir(
example_project_dir: ExProjectDir,
) -> Generator[None, None, None]:
cwd = os.getcwd()
tgt_dir = str(example_project_dir.resolve())
if cwd == tgt_dir:
Expand Down Expand Up @@ -155,7 +156,9 @@ def hello_world() -> None:
abs_filepath.write_text(contents)

# create the changelog template directory
cached_project_path.joinpath(changelog_template_dir).mkdir(parents=True, exist_ok=True)
cached_project_path.joinpath(changelog_template_dir).mkdir(
parents=True, exist_ok=True
)

# trigger automatic cleanup of cache directory during teardown
return teardown_cached_dir(cached_project_path)
Expand Down
5 changes: 4 additions & 1 deletion tests/unit/semantic_release/cli/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@ def test_default_toml_config_valid(example_project_dir):
],
)
def test_commit_author_configurable(
example_pyproject_toml: Path, repo_with_no_tags_angular_commits, mock_env, expected_author
example_pyproject_toml: Path,
repo_with_no_tags_angular_commits,
mock_env,
expected_author,
):
content = tomlkit.loads(example_pyproject_toml.read_text(encoding="utf-8")).unwrap()

Expand Down

0 comments on commit c7be6e2

Please sign in to comment.