From 382294d48edde8c28816f9df291bd4a36e7da193 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 15 Jan 2025 21:00:02 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- testing/conftest.py | 4 ++-- testing/test_file_finder.py | 2 +- testing/test_git.py | 4 ++-- testing/test_integration.py | 2 +- testing/test_main.py | 2 +- testing/test_mercurial.py | 6 +++--- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/testing/conftest.py b/testing/conftest.py index d1c96ed3..09b69c1a 100644 --- a/testing/conftest.py +++ b/testing/conftest.py @@ -79,14 +79,14 @@ def debug_mode() -> Iterator[DebugMode]: yield debug_mode -@pytest.fixture() +@pytest.fixture def wd(tmp_path: Path) -> WorkDir: target_wd = tmp_path.resolve() / "wd" target_wd.mkdir() return WorkDir(target_wd) -@pytest.fixture() +@pytest.fixture def repositories_hg_git(tmp_path: Path) -> tuple[WorkDir, WorkDir]: tmp_path = tmp_path.resolve() path_git = tmp_path / "repo_git" diff --git a/testing/test_file_finder.py b/testing/test_file_finder.py index 5af94fcf..cc1a08fd 100644 --- a/testing/test_file_finder.py +++ b/testing/test_file_finder.py @@ -212,7 +212,7 @@ def test_symlink_not_in_scm_while_target_is(inwd: WorkDir) -> None: @pytest.mark.issue(587) -@pytest.mark.skip_commit() +@pytest.mark.skip_commit def test_not_commited(inwd: WorkDir) -> None: assert find_files() == [] diff --git a/testing/test_git.py b/testing/test_git.py index 661dcb76..9186b1a6 100644 --- a/testing/test_git.py +++ b/testing/test_git.py @@ -307,7 +307,7 @@ def test_git_worktree_support(wd: WorkDir, tmp_path: Path) -> None: assert str(worktree) in res.stdout -@pytest.fixture() +@pytest.fixture def shallow_wd(wd: WorkDir, tmp_path: Path) -> Path: wd.commit_testfile() wd.commit_testfile() @@ -515,7 +515,7 @@ def test_git_getdate_git_2_45_0_plus( assert git_wd.get_head_date() == date(2024, 4, 30) -@pytest.fixture() +@pytest.fixture def signed_commit_wd(monkeypatch: pytest.MonkeyPatch, wd: WorkDir) -> WorkDir: if not has_command("gpg", args=["--version"], warn=False): pytest.skip("gpg executable not found") diff --git a/testing/test_integration.py b/testing/test_integration.py index 957bf4c5..ba1cdb67 100644 --- a/testing/test_integration.py +++ b/testing/test_integration.py @@ -23,7 +23,7 @@ c = Configuration() -@pytest.fixture() +@pytest.fixture def wd(wd: WorkDir) -> WorkDir: wd("git init") wd("git config user.email test@example.com") diff --git a/testing/test_main.py b/testing/test_main.py index ad9a2903..3c0ff3f8 100644 --- a/testing/test_main.py +++ b/testing/test_main.py @@ -20,7 +20,7 @@ def test_main() -> None: exec(code, ns) -@pytest.fixture() +@pytest.fixture def repo(wd: WorkDir) -> WorkDir: wd("git init") wd("git config user.email user@host") diff --git a/testing/test_mercurial.py b/testing/test_mercurial.py index b51c3fd9..57073716 100644 --- a/testing/test_mercurial.py +++ b/testing/test_mercurial.py @@ -21,7 +21,7 @@ ) -@pytest.fixture() +@pytest.fixture def wd(wd: WorkDir) -> WorkDir: wd("hg init") wd.add_command = "hg add ." @@ -153,7 +153,7 @@ def test_parse_no_worktree(tmp_path: Path) -> None: assert ret is None -@pytest.fixture() +@pytest.fixture def version_1_0(wd: WorkDir) -> WorkDir: wd("hg branch default") wd.commit_testfile() @@ -161,7 +161,7 @@ def version_1_0(wd: WorkDir) -> WorkDir: return wd -@pytest.fixture() +@pytest.fixture def pre_merge_commit_after_tag(version_1_0: WorkDir) -> WorkDir: wd = version_1_0 wd("hg branch testbranch")