Skip to content

Commit 71457f7

Browse files
[pre-commit.ci] pre-commit autoupdate
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.4.4 → v0.4.5](astral-sh/ruff-pre-commit@v0.4.4...v0.4.5) - [github.com/codespell-project/codespell: v2.2.6 → v2.3.0](codespell-project/codespell@v2.2.6...v2.3.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks * Update test dependancies --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: CoolCat467 <[email protected]>
1 parent 9fabf0c commit 71457f7

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ repos:
2323
hooks:
2424
- id: black
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: v0.4.4
26+
rev: v0.4.5
2727
hooks:
2828
- id: ruff
2929
types: [file]
3030
types_or: [python, pyi, toml]
3131
args: ["--show-fixes"]
3232
- repo: https://github.com/codespell-project/codespell
33-
rev: v2.2.6
33+
rev: v2.3.0
3434
hooks:
3535
- id: codespell

src/trio/_core/_concat_tb.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@
2626
import tputil
2727
except ImportError:
2828
# ctypes it is
29-
import ctypes
30-
3129
# How to handle refcounting? I don't want to use ctypes.py_object because
3230
# I don't understand or trust it, and I don't want to use
3331
# ctypes.pythonapi.Py_{Inc,Dec}Ref because we might clash with user code
3432
# that also tries to use them but with different types. So private _ctypes
3533
# APIs it is!
3634
import _ctypes
35+
import ctypes
3736

3837
class CTraceback(ctypes.Structure):
3938
_fields_: ClassVar = [

src/trio/_subprocess_platform/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def create_pipe_from_child_output() -> tuple[ClosableReceiveStream, int]:
8181
try:
8282
if TYPE_CHECKING:
8383
# Not worth type checking these definitions
84-
pass # noqa: TCH005
84+
pass
8585

8686
elif os.name == "posix":
8787

test-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ click==8.1.7
3232
# via
3333
# black
3434
# pip-tools
35-
codespell==2.2.6
35+
codespell==2.3.0
3636
# via -r test-requirements.in
3737
coverage==7.5.0
3838
# via -r test-requirements.in
@@ -122,7 +122,7 @@ pytz==2024.1
122122
# via babel
123123
requests==2.31.0
124124
# via sphinx
125-
ruff==0.4.3
125+
ruff==0.4.5
126126
# via -r test-requirements.in
127127
sniffio==1.3.1
128128
# via -r test-requirements.in

0 commit comments

Comments
 (0)