File tree 6 files changed +13
-5
lines changed
6 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,12 @@ repos:
30
30
- id : rst-inline-touching-normal
31
31
- id : text-unicode-replacement-char
32
32
- repo : https://github.com/asottile/reorder_python_imports
33
- rev : v3.3.0
33
+ rev : v3.8.1
34
34
hooks :
35
35
- id : reorder-python-imports
36
36
args : [--py37-plus, --add-import, 'from __future__ import annotations']
37
37
- repo : https://github.com/asottile/pyupgrade
38
- rev : v2.34.0
38
+ rev : v2.37.1
39
39
hooks :
40
40
- id : pyupgrade
41
41
args : [--py37-plus]
Original file line number Diff line number Diff line change 19
19
from _pytask .report import ExecutionReport
20
20
from _pytask .session import Session
21
21
from _pytask .shared import get_first_non_none_value
22
+ from rich .box import ROUNDED
22
23
from rich .live import Live
23
24
from rich .status import Status
24
25
from rich .style import Style
@@ -242,7 +243,7 @@ def _generate_table(
242
243
else :
243
244
caption_kwargs = {}
244
245
245
- table = Table (** caption_kwargs )
246
+ table = Table (** caption_kwargs , box = ROUNDED )
246
247
table .add_column ("Task" , overflow = "fold" )
247
248
table .add_column ("Outcome" )
248
249
for report in relevant_reports :
Original file line number Diff line number Diff line change @@ -79,10 +79,12 @@ def pytask_resolve_dependencies_create_dag(tasks: list[Task]) -> nx.DiGraph:
79
79
dag .add_node (task .name , task = task )
80
80
81
81
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
+ )
83
85
84
86
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
86
88
87
89
_check_if_dag_has_cycles (dag )
88
90
Original file line number Diff line number Diff line change 2
2
3
3
import re
4
4
import subprocess
5
+ import sys
5
6
import textwrap
6
7
7
8
import pytest
12
13
from pytask import TaskOutcome
13
14
14
15
16
+ @pytest .mark .xfail (sys .platform == "win32" , reason = "See #293." )
15
17
@pytest .mark .end_to_end
16
18
def test_python_m_pytask (tmp_path ):
17
19
tmp_path .joinpath ("task_module.py" ).write_text ("def task_example(): pass" )
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
3
import subprocess
4
+ import sys
4
5
import textwrap
5
6
6
7
import pytest
@@ -122,6 +123,7 @@ def task_example():
122
123
assert ("warning!!!" in result .output ) is not add_config
123
124
124
125
126
+ @pytest .mark .xfail (sys .platform == "win32" , reason = "See #293." )
125
127
@pytest .mark .parametrize ("warning" , ["DeprecationWarning" , "PendingDeprecationWarning" ])
126
128
def test_deprecation_warnings_are_not_captured (tmp_path , warning ):
127
129
path_to_warn_module = tmp_path .joinpath ("warning.py" )
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ filterwarnings =
75
75
ignore: the imp module is deprecated in favour of importlib
76
76
ignore: Using or importing the ABCs from ' collections' instead of from
77
77
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
78
79
markers =
79
80
wip: Tests that are work-in-progress.
80
81
unit: Flag for unit tests which target mainly a single function.
You can’t perform that action at this time.
0 commit comments