Skip to content

Commit ad9a607

Browse files
authored
Merge 54d54e0 into 307db03
2 parents 307db03 + 54d54e0 commit ad9a607

File tree

7 files changed

+13
-3
lines changed

7 files changed

+13
-3
lines changed

docs/source/changes.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ chronological order. Releases follow [semantic versioning](https://semver.org/)
55
releases are available on [PyPI](https://pypi.org/project/pytask) and
66
[Anaconda.org](https://anaconda.org/conda-forge/pytask).
77

8-
## 0.4.2 - 2023-xx-xx
8+
## 0.4.3 - 2023-11-xx
9+
10+
- {pull}`483` simplifies the teardown of a task.
11+
- {pull}`485` adds missing steps to unconfigure pytask after the job is done which
12+
caused flaky tests.
13+
14+
## 0.4.2 - 2023-11-8
915

1016
- {pull}`449` simplifies the code building the plugin manager.
1117
- {pull}`451` improves `collect_command.py` and renames `graph.py` to `dag_command.py`.
@@ -30,7 +36,6 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and
3036
It is delegated to the check during the execution.
3137
- {pull}`481` improves coverage.
3238
- {pull}`482` correctly handles names and signatures of {class}`~pytask.PythonNode`.
33-
- {pull}`483` simplifies the teardown of a task.
3439

3540
## 0.4.1 - 2023-10-11
3641

src/_pytask/build.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ def build( # noqa: C901, PLR0912, PLR0913
278278
session.exit_code = ExitCode.FAILED
279279

280280
session.hook.pytask_unconfigure(session=session)
281-
282281
return session
283282

284283

src/_pytask/clean.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ def clean(**raw_config: Any) -> NoReturn: # noqa: C901, PLR0912
165165
console.rule(style="failed")
166166
session.exit_code = ExitCode.FAILED
167167

168+
session.hook.pytask_unconfigure(session=session)
168169
sys.exit(session.exit_code)
169170

170171

src/_pytask/collect_command.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def collect(**raw_config: Any | None) -> NoReturn:
101101
console.print_exception()
102102
console.rule(style="failed")
103103

104+
session.hook.pytask_unconfigure(session=session)
104105
sys.exit(session.exit_code)
105106

106107

src/_pytask/dag_command.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ def dag(**raw_config: Any) -> int:
115115
console.print(Traceback.from_exception(*exc_info))
116116
console.rule(style="failed")
117117

118+
session.hook.pytask_unconfigure(session=session)
118119
sys.exit(session.exit_code)
119120

120121

@@ -198,6 +199,7 @@ def build_dag(raw_config: dict[str, Any]) -> nx.DiGraph:
198199
)
199200
session.hook.pytask_collect(session=session)
200201
session.hook.pytask_dag(session=session)
202+
session.hook.pytask_unconfigure(session=session)
201203
dag = _refine_dag(session)
202204

203205
except Exception:

src/_pytask/mark/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def markers(**raw_config: Any) -> NoReturn:
6666

6767
console.print(table)
6868

69+
session.hook.pytask_unconfigure(session=session)
6970
sys.exit(session.exit_code)
7071

7172

src/_pytask/profile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ def profile(**raw_config: Any) -> NoReturn:
150150
console.print_exception()
151151
console.rule(style="failed")
152152

153+
session.hook.pytask_unconfigure(session=session)
153154
sys.exit(session.exit_code)
154155

155156

0 commit comments

Comments
 (0)