Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ default_language_version:
python: python3
repos:
- repo: https://github.com/psf/black
rev: 22.8.0
rev: 22.10.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand All @@ -29,7 +29,7 @@ repos:
args:
- --ignore-words-list=cachable
- repo: https://github.com/asottile/pyupgrade
rev: v2.38.2
rev: v3.0.0
hooks:
- id: pyupgrade
- repo: https://github.com/PyCQA/isort
Expand Down
4 changes: 2 additions & 2 deletions tests/test_dulwich.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import threading
from io import StringIO
from typing import Any, Dict, Iterator
from unittest.mock import AsyncMock

import asyncssh
import paramiko
Expand All @@ -12,7 +13,6 @@
USER,
Server,
)
from mock import AsyncMock
from pytest_mock import MockerFixture
from pytest_test_utils.waiters import wait_until

Expand All @@ -39,7 +39,7 @@ def ssh_conn(request: pytest.FixtureRequest) -> Iterator[Dict[str, Any]]:
def _run_server():
try:
conn, _ = sock.accept()
except socket.error:
except OSError:
return False
server.transport = transport = paramiko.Transport(conn)
request.addfinalizer(transport.close)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def _gen(i: int):
scm.add_commit("file", message=f"{i}")
return scm.get_rev()

base, *others = [_gen(i) for i in range(5)]
base, *others = (_gen(i) for i in range(5))
branch_revs = list(git.branch_revs("master", base))[::-1]
assert branch_revs == others

Expand Down