From 37d7e17fdb63b3de43a41b777b2f3f72dd237bb9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 07:26:45 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 22.12.0 → 23.1.0](https://github.com/psf/black/compare/22.12.0...23.1.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 665646e1..695c8182 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ default_language_version: python: python3 repos: - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 23.1.0 hooks: - id: black - repo: https://github.com/pre-commit/pre-commit-hooks From 4514426a9a600df626cf02f0817cc354dbcec888 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 7 Feb 2023 07:26:56 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/scmrepo/git/backend/dulwich/__init__.py | 4 ++-- tests/test_git.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/scmrepo/git/backend/dulwich/__init__.py b/src/scmrepo/git/backend/dulwich/__init__.py index 22cf9435..eef4411a 100644 --- a/src/scmrepo/git/backend/dulwich/__init__.py +++ b/src/scmrepo/git/backend/dulwich/__init__.py @@ -517,7 +517,7 @@ def update_refs(refs): parse_reftuples(self.repo.refs, refs, refspecs, force=force) ) new_refs = {} - for (lh, rh, _) in selected_refs: + for lh, rh, _ in selected_refs: refname = os.fsdecode(rh) if rh in refs and lh is not None: if refs[rh] == self.repo.refs[lh]: @@ -613,7 +613,7 @@ def determine_wants( result = {} - for (lh, rh, _) in fetch_refs: + for lh, rh, _ in fetch_refs: refname = os.fsdecode(rh) if rh in self.repo.refs: if self.repo.refs[rh] == fetch_result.refs[lh]: diff --git a/tests/test_git.py b/tests/test_git.py index 04e1fae1..5e6f4631 100644 --- a/tests/test_git.py +++ b/tests/test_git.py @@ -318,7 +318,6 @@ def test_fetch_refspecs( use_url: bool, mocker: MockerFixture, ): - from scmrepo.git.backend.dulwich import SyncStatus url = f"file://{remote_git_dir.resolve().as_posix()}"