Skip to content

Commit f3c5b4a

Browse files
[pre-commit.ci] pre-commit autoupdate (#62)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.13.3 → v0.14.3](astral-sh/ruff-pre-commit@v0.13.3...v0.14.3) * [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 b739d13 commit f3c5b4a

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
- id: end-of-file-fixer
1717
- id: trailing-whitespace
1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.13.3
19+
rev: v0.14.3
2020
hooks:
2121
- id: ruff
2222
args: [ --fix ]

conda_forge_feedstock_ops/container_utils.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
import os
44
import pprint
55
import subprocess
6-
from collections.abc import Iterable
7-
from typing import Callable, Optional
6+
from collections.abc import Callable, Iterable
87

98
from conda_forge_feedstock_ops.settings import FeedstockOpsSettings
109

@@ -111,10 +110,10 @@ def run_container_operation(
111110
args: Iterable[str],
112111
json_loads: Callable = json.loads,
113112
tmpfs_size_mb: int = DEFAULT_CONTAINER_TMPFS_SIZE_MB,
114-
input: Optional[str] = None,
115-
mount_dir: Optional[str] = None,
113+
input: str | None = None,
114+
mount_dir: str | None = None,
116115
mount_readonly: bool = True,
117-
extra_container_args: Optional[Iterable[str]] = None,
116+
extra_container_args: Iterable[str] | None = None,
118117
):
119118
"""Run a feedstock operation in a container.
120119
@@ -242,7 +241,7 @@ def run_container_operation(
242241
return ret["data"]
243242

244243

245-
def should_use_container(use_container: Optional[bool] = None):
244+
def should_use_container(use_container: bool | None = None):
246245
"""Determine if we should use a container.
247246
248247
Parameters

0 commit comments

Comments
 (0)