Skip to content

Commit ff75980

Browse files
[pre-commit.ci] pre-commit autoupdate (#12447)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.4.7 → v0.4.8](astral-sh/ruff-pre-commit@v0.4.7...v0.4.8) - [github.com/asottile/pyupgrade: v3.15.2 → v3.16.0](asottile/pyupgrade@v3.15.2...v3.16.0) * Apply pyupgrade automatically --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <[email protected]>
1 parent 23ca979 commit ff75980

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: "v0.4.7"
3+
rev: "v0.4.8"
44
hooks:
55
- id: ruff
66
args: ["--fix"]
@@ -44,7 +44,7 @@ repos:
4444
# https://pyproject-fmt.readthedocs.io/en/latest/#calculating-max-supported-python-version
4545
additional_dependencies: ["tox>=4.9"]
4646
- repo: https://github.com/asottile/pyupgrade
47-
rev: v3.15.2
47+
rev: v3.16.0
4848
hooks:
4949
- id: pyupgrade
5050
stages: [manual]

src/_pytest/cacheprovider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,9 @@ def _ensure_cache_dir_and_supporting_files(self) -> None:
221221
os.umask(umask)
222222
path.chmod(0o777 - umask)
223223

224-
with open(path.joinpath("README.md"), "xt", encoding="UTF-8") as f:
224+
with open(path.joinpath("README.md"), "x", encoding="UTF-8") as f:
225225
f.write(README_CONTENT)
226-
with open(path.joinpath(".gitignore"), "xt", encoding="UTF-8") as f:
226+
with open(path.joinpath(".gitignore"), "x", encoding="UTF-8") as f:
227227
f.write("# Created by pytest automatically.\n*\n")
228228
with open(path.joinpath("CACHEDIR.TAG"), "xb") as f:
229229
f.write(CACHEDIR_TAG_CONTENT)

0 commit comments

Comments
 (0)