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 #3182

Merged
merged 3 commits into from
Jan 7, 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
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.4
rev: v0.8.6
hooks:
- id: ruff
types: [file]
Expand All @@ -35,15 +35,15 @@ repos:
hooks:
- id: codespell
- repo: https://github.com/crate-ci/typos
rev: v1.28.4
rev: dictgen-v0.3.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks weird but I think it's fine.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah pre-commit doesn't care what you label your tags in https://github.com/crate-ci/typos/tags
feels dangerous, but don't think we need to care

hooks:
- id: typos
- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: v1.0.0
hooks:
- id: sphinx-lint
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v0.10.0
rev: v1.0.0
hooks:
- id: zizmor
- repo: local
Expand All @@ -56,7 +56,7 @@ repos:
additional_dependencies: ["astor", "attrs", "black", "ruff"]
files: ^src\/trio\/_core\/(_run|(_i(o_(common|epoll|kqueue|windows)|nstrumentation)))\.py$
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.5.13
rev: 0.5.14
hooks:
# Compile requirements
- id: pip-compile
Expand Down
4 changes: 2 additions & 2 deletions src/trio/_tests/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,11 +633,11 @@ async def test_lock_handover() -> None:

# this task acquires the lock
lock.acquire_nowait()
assert GLOBAL_PARKING_LOT_BREAKER == {
assert {
_core.current_task(): [
lock._lot,
],
}
} == GLOBAL_PARKING_LOT_BREAKER

async with trio.open_nursery() as nursery:
nursery.start_soon(lock.acquire)
Expand Down
4 changes: 2 additions & 2 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pyyaml==6.0.2
# via pre-commit
requests==2.32.3
# via sphinx
ruff==0.8.4
ruff==0.8.6
# via -r test-requirements.in
sniffio==1.3.1
# via -r test-requirements.in
Expand Down Expand Up @@ -181,7 +181,7 @@ typing-extensions==4.12.2
# pyright
urllib3==2.3.0
# via requests
uv==0.5.13
uv==0.5.14
# via -r test-requirements.in
virtualenv==20.28.0
# via pre-commit
Expand Down
Loading