Skip to content

Commit 2372655

Browse files
build(deps-dev): update ruff requirement from ~=0.8.4 to ~=0.14.10 (#199)
* build(deps-dev): update ruff requirement from ~=0.8.4 to ~=0.14.10 Updates the requirements on [ruff](https://github.com/astral-sh/ruff) to permit the latest version. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.8.4...0.14.10) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.14.10 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> * update ruff run ruff check and format address ruff error update uv.lock --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pete Ingraham <pingraham@element84.com>
1 parent 3459d56 commit 2372655

File tree

5 files changed

+41
-34
lines changed

5 files changed

+41
-34
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ dev = [
4848
"mypy~=1.9",
4949
"pre-commit~=4.0",
5050
"pre-commit-hooks~=6.0",
51-
"ruff~=0.8.4",
51+
"ruff~=0.14.10",
5252
"boto3-stubs~=1.42.13",
5353
"pytest~=9.0",
5454
"pytest-cov~=7.0",

stactask/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ def parse_args(cls, args: list[str]) -> dict[str, Any]:
696696
if pargs.get("output") is None:
697697
pargs["output"] = Path(pargs["workdir"]) / "output-payload.json"
698698

699-
if pargs.get("command", None) is None:
699+
if pargs.get("command") is None:
700700
parser.print_help()
701701
sys.exit(0)
702702

tests/test_payload.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,10 @@ def payload_collection_missing_upload_options() -> dict[str, Any]:
162162

163163

164164
@pytest.fixture
165-
def payload_collection_missing_upload_options_and_global_upload_options() -> (
166-
dict[str, Any]
167-
):
165+
def payload_collection_missing_upload_options_and_global_upload_options() -> dict[
166+
str,
167+
Any,
168+
]:
168169
"""Payload with collection matcher but missing global upload options and upload
169170
options for collection."""
170171
return {

tests/test_task.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ def test_failed_validation(payload: dict[str, Any]) -> None:
7070

7171
def test_deprecated_payload_dict(nothing_task: Task) -> None:
7272
nothing_task._payload["process"] = nothing_task._payload["process"][0]
73-
with pytest.warns(DeprecationWarning):
73+
with pytest.warns(
74+
DeprecationWarning,
75+
match=r"use `payload.process_definition` instead",
76+
):
7477
_ = nothing_task.process_definition
7578

7679

@@ -203,7 +206,7 @@ def test_parse_no_args() -> None:
203206

204207

205208
def test_parse_args() -> None:
206-
args = NothingTask.parse_args("run input --save-workdir".split())
209+
args = NothingTask.parse_args(["run", "input", "--save-workdir"])
207210
assert args["command"] == "run"
208211
assert args["logging"] == "INFO"
209212
assert args["input"] == "input"
@@ -213,31 +216,33 @@ def test_parse_args() -> None:
213216

214217

215218
def test_parse_args_deprecated_skip() -> None:
216-
args = NothingTask.parse_args("run input --skip-upload --skip-validation".split())
219+
args = NothingTask.parse_args(
220+
["run", "input", "--skip-upload", "--skip-validation"],
221+
)
217222
assert args["upload"] is False
218223
assert args["validate"] is False
219224

220225

221226
def test_parse_args_no_upload_and_no_validation() -> None:
222-
args = NothingTask.parse_args("run input --no-upload --no-validate".split())
227+
args = NothingTask.parse_args(["run", "input", "--no-upload", "--no-validate"])
223228
assert args["upload"] is False
224229
assert args["validate"] is False
225230

226231

227232
def test_parse_args_no_upload_and_validation() -> None:
228-
args = NothingTask.parse_args("run input --no-upload --validate".split())
233+
args = NothingTask.parse_args(["run", "input", "--no-upload", "--validate"])
229234
assert args["upload"] is False
230235
assert args["validate"] is True
231236

232237

233238
def test_parse_args_upload_and_no_validation() -> None:
234-
args = NothingTask.parse_args("run input --upload --no-validate".split())
239+
args = NothingTask.parse_args(["run", "input", "--upload", "--no-validate"])
235240
assert args["upload"] is True
236241
assert args["validate"] is False
237242

238243

239244
def test_parse_args_upload_and_validation() -> None:
240-
args = NothingTask.parse_args("run input --upload --validate".split())
245+
args = NothingTask.parse_args(["run", "input", "--upload", "--validate"])
241246
assert args["upload"] is True
242247
assert args["validate"] is True
243248

uv.lock

Lines changed: 23 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)