Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and

## Unreleased

- Documents the pytest provenance of the adapted debugging, marker, and warning
modules.
- [#889](https://github.com/pytask-dev/pytask/pull/889) improves typing for tree
operations by wrapping optree's pytree utilities with pytask-specific signatures
and requiring optree 0.16.0 or newer.
Expand Down
6 changes: 5 additions & 1 deletion src/_pytask/debugging.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
"""Contains everything related to debugging."""
"""Contains everything related to debugging.

The PDB integration is adapted from pytest's ``_pytest.debugging`` module:
https://github.com/pytest-dev/pytest/blob/main/src/_pytest/debugging.py
"""

from __future__ import annotations

Expand Down
3 changes: 3 additions & 0 deletions src/_pytask/mark/expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
- ident evaluates to True of False according to a provided matcher function.
- or/and/not evaluate according to the usual boolean semantics.

This module is adapted from pytest's ``_pytest.mark.expression`` module:
https://github.com/pytest-dev/pytest/blob/main/src/_pytest/mark/expression.py

"""

from __future__ import annotations
Expand Down
7 changes: 7 additions & 0 deletions src/_pytask/mark/structures.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""Contains the data structures for marks.

The mark decorator and generator implementation originated in pytest's
``_pytest.mark.structures`` module and has been adapted to pytask's task model:
https://github.com/pytest-dev/pytest/blob/main/src/_pytest/mark/structures.py
"""

from __future__ import annotations

import warnings
Expand Down
6 changes: 5 additions & 1 deletion src/_pytask/warnings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
"""Contains code for capturing warnings."""
"""Contains code for capturing warnings.

The warning-capture plugin is adapted from pytest's ``_pytest.warnings`` module:
https://github.com/pytest-dev/pytest/blob/main/src/_pytest/warnings.py
"""

from __future__ import annotations

Expand Down