Skip to content

Commit 6b097e7

Browse files
[pre-commit.ci] pre-commit autoupdate (#425)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.12.3 → v0.12.4](astral-sh/ruff-pre-commit@v0.12.3...v0.12.4) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent d3a8b6d commit 6b097e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
hooks:
2525
- id: pyproject-fmt
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.12.3"
27+
rev: "v0.12.4"
2828
hooks:
2929
- id: ruff-format
3030
- id: ruff

tests/test_filelock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,8 +616,8 @@ def test_soft_errors(tmp_path: Path, mocker: MockerFixture) -> None:
616616
def _check_file_read_write(txt_file: Path) -> None:
617617
for _ in range(3):
618618
uuid = str(uuid4())
619-
txt_file.write_text(uuid)
620-
assert txt_file.read_text() == uuid
619+
txt_file.write_text(uuid, encoding="utf-8")
620+
assert txt_file.read_text(encoding="utf-8") == uuid
621621

622622

623623
@pytest.mark.parametrize("lock_type", [FileLock, SoftFileLock])

0 commit comments

Comments
 (0)