Skip to content

Commit b03997c

Browse files
[pre-commit.ci] pre-commit autoupdate (#292)
1 parent 5b8b0e1 commit b03997c

6 files changed

+13
-5
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ repos:
3030
- id: rst-inline-touching-normal
3131
- id: text-unicode-replacement-char
3232
- repo: https://github.com/asottile/reorder_python_imports
33-
rev: v3.3.0
33+
rev: v3.8.1
3434
hooks:
3535
- id: reorder-python-imports
3636
args: [--py37-plus, --add-import, 'from __future__ import annotations']
3737
- repo: https://github.com/asottile/pyupgrade
38-
rev: v2.34.0
38+
rev: v2.37.1
3939
hooks:
4040
- id: pyupgrade
4141
args: [--py37-plus]

src/_pytask/live.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from _pytask.report import ExecutionReport
2020
from _pytask.session import Session
2121
from _pytask.shared import get_first_non_none_value
22+
from rich.box import ROUNDED
2223
from rich.live import Live
2324
from rich.status import Status
2425
from rich.style import Style
@@ -242,7 +243,7 @@ def _generate_table(
242243
else:
243244
caption_kwargs = {}
244245

245-
table = Table(**caption_kwargs)
246+
table = Table(**caption_kwargs, box=ROUNDED)
246247
table.add_column("Task", overflow="fold")
247248
table.add_column("Outcome")
248249
for report in relevant_reports:

src/_pytask/resolve_dependencies.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,12 @@ def pytask_resolve_dependencies_create_dag(tasks: list[Task]) -> nx.DiGraph:
7979
dag.add_node(task.name, task=task)
8080

8181
tree_map(lambda x: dag.add_node(x.name, node=x), task.depends_on)
82-
tree_map(lambda x: dag.add_edge(x.name, task.name), task.depends_on)
82+
tree_map(
83+
lambda x: dag.add_edge(x.name, task.name), task.depends_on # noqa: B023
84+
)
8385

8486
tree_map(lambda x: dag.add_node(x.name, node=x), task.produces)
85-
tree_map(lambda x: dag.add_edge(task.name, x.name), task.produces)
87+
tree_map(lambda x: dag.add_edge(task.name, x.name), task.produces) # noqa: B023
8688

8789
_check_if_dag_has_cycles(dag)
8890

tests/test_execute.py

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import re
44
import subprocess
5+
import sys
56
import textwrap
67

78
import pytest
@@ -12,6 +13,7 @@
1213
from pytask import TaskOutcome
1314

1415

16+
@pytest.mark.xfail(sys.platform == "win32", reason="See #293.")
1517
@pytest.mark.end_to_end
1618
def test_python_m_pytask(tmp_path):
1719
tmp_path.joinpath("task_module.py").write_text("def task_example(): pass")

tests/test_warnings.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
import subprocess
4+
import sys
45
import textwrap
56

67
import pytest
@@ -122,6 +123,7 @@ def task_example():
122123
assert ("warning!!!" in result.output) is not add_config
123124

124125

126+
@pytest.mark.xfail(sys.platform == "win32", reason="See #293.")
125127
@pytest.mark.parametrize("warning", ["DeprecationWarning", "PendingDeprecationWarning"])
126128
def test_deprecation_warnings_are_not_captured(tmp_path, warning):
127129
path_to_warn_module = tmp_path.joinpath("warning.py")

tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ filterwarnings =
7575
ignore: the imp module is deprecated in favour of importlib
7676
ignore: Using or importing the ABCs from 'collections' instead of from
7777
ignore: The (parser|symbol) module is deprecated and will be removed in future
78+
ignore: nx\.nx_pydot\.to_pydot depends on the pydot package
7879
markers =
7980
wip: Tests that are work-in-progress.
8081
unit: Flag for unit tests which target mainly a single function.

0 commit comments

Comments
 (0)