Skip to content

Commit 05b6dd1

Browse files
[pre-commit.ci] pre-commit autoupdate (#95)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 043b36f commit 05b6dd1

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ repos:
3232
- id: rst-inline-touching-normal
3333
- id: text-unicode-replacement-char
3434
- repo: https://github.com/asottile/pyupgrade
35-
rev: v2.16.0
35+
rev: v2.18.2
3636
hooks:
3737
- id: pyupgrade
3838
args: [--py36-plus]

src/_pytask/collect_command.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,12 @@ def _organize_tasks(tasks, common_ancestor):
110110
task_dict = {
111111
reduced_task_name: {
112112
"depends_on": sorted(
113-
[
114-
relative_to(node.path, common_ancestor)
115-
for node in task.depends_on.values()
116-
]
113+
relative_to(node.path, common_ancestor)
114+
for node in task.depends_on.values()
117115
),
118116
"produces": sorted(
119-
[
120-
relative_to(node.path, common_ancestor)
121-
for node in task.produces.values()
122-
]
117+
relative_to(node.path, common_ancestor)
118+
for node in task.produces.values()
123119
),
124120
}
125121
}

src/_pytask/skipping.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def pytask_execute_task_setup(task):
4545
markers = get_specific_markers_from_task(task, "skip_ancestor_failed")
4646
if markers:
4747
message = "\n".join(
48-
[skip_ancestor_failed(*marker.args, **marker.kwargs) for marker in markers]
48+
skip_ancestor_failed(*marker.args, **marker.kwargs) for marker in markers
4949
)
5050
raise SkippedAncestorFailed(message)
5151

@@ -56,7 +56,7 @@ def pytask_execute_task_setup(task):
5656
markers = get_specific_markers_from_task(task, "skipif")
5757
if markers:
5858
marker_args = [skipif(*marker.args, **marker.kwargs) for marker in markers]
59-
message = "\n".join([arg[1] for arg in marker_args if arg[0]])
59+
message = "\n".join(arg[1] for arg in marker_args if arg[0])
6060
should_skip = any(arg[0] for arg in marker_args)
6161
if should_skip:
6262
raise Skipped(message)

0 commit comments

Comments
 (0)