We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28da1fb commit f2dc901Copy full SHA for f2dc901
.pre-commit-config.yaml
@@ -1,6 +1,6 @@
1
repos:
2
- repo: https://github.com/astral-sh/ruff-pre-commit
3
- rev: v0.13.2
+ rev: v0.14.10
4
hooks:
5
- id: ruff-check
6
name: Run Ruff (lint) on Apple/
Doc/tools/check-warnings.py
@@ -311,8 +311,11 @@ def main(argv: list[str] | None = None) -> int:
311
if not Path("Doc").exists() or not Path("Doc").is_dir():
312
raise RuntimeError(wrong_directory_msg)
313
314
- with Path("Doc/sphinx-warnings.txt").open(encoding="UTF-8") as f:
315
- warnings = f.read().splitlines()
+ warnings = (
+ Path("Doc/sphinx-warnings.txt")
316
+ .read_text(encoding="UTF-8")
317
+ .splitlines()
318
+ )
319
320
cwd = str(Path.cwd()) + os.path.sep
321
files_with_nits = {
0 commit comments