Skip to content

Commit 753dd62

Browse files
[pre-commit.ci] pre-commit autoupdate (#3564)
* [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 5462892 commit 753dd62

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.pre-commit-config.yaml

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

src/tox/config/source/ini.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, path: Path, content: str | None = None) -> None:
3232
if content is None:
3333
if not path.exists():
3434
raise ValueError
35-
content = path.read_text()
35+
content = path.read_text(encoding="utf-8")
3636
self._parser.read_string(content, str(path))
3737
self._section_mapping: defaultdict[str, list[str]] = defaultdict(list)
3838

tests/execute/local_subprocess/bad_process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def _p(m: str) -> None:
3232
try:
3333
start_file = Path(sys.argv[1])
3434
_p(f"create {start_file}")
35-
start_file.write_text("")
35+
start_file.write_text("", encoding="utf-8")
3636
_p(f"created {start_file}")
3737
while True:
3838
time.sleep(0.01)

0 commit comments

Comments
 (0)