Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #860

Merged
merged 2 commits into from
Jan 14, 2025
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ repos:
- tomli

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.9.1
hooks:
- id: ruff
args: [--fix, --show-fixes]
Expand Down
3 changes: 1 addition & 2 deletions src/anyio/_backends/_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -1980,8 +1980,7 @@ def acquire_nowait(self) -> None:
def acquire_on_behalf_of_nowait(self, borrower: object) -> None:
if borrower in self._borrowers:
raise RuntimeError(
"this borrower is already holding one of this CapacityLimiter's "
"tokens"
"this borrower is already holding one of this CapacityLimiter's tokens"
)

if self._wait_queue or len(self._borrowers) >= self._total_tokens:
Expand Down
6 changes: 3 additions & 3 deletions src/anyio/_core/_asyncio_selector_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def _stop(self) -> None:
self._receive.close()
self._selector.close()
_selector = None
assert (
not self._selector.get_map()
), "selector still has registered file descriptors after shutdown"
assert not self._selector.get_map(), (
"selector still has registered file descriptors after shutdown"
)

def _notify_self(self) -> None:
try:
Expand Down
3 changes: 1 addition & 2 deletions src/anyio/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ def get_runner(
def pytest_configure(config: Any) -> None:
config.addinivalue_line(
"markers",
"anyio: mark the (coroutine function) test to be run "
"asynchronously via anyio.",
"anyio: mark the (coroutine function) test to be run asynchronously via anyio.",
)


Expand Down
3 changes: 1 addition & 2 deletions tests/test_subprocesses.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ async def test_run_process_inherit_stdout(capfd: pytest.CaptureFixture[str]) ->
[
sys.executable,
"-c",
'import sys; print("stderr-text", file=sys.stderr); '
'print("stdout-text")',
'import sys; print("stderr-text", file=sys.stderr); print("stdout-text")',
],
check=True,
stdout=None,
Expand Down
Loading