Skip to content

v0.3.2

Compare
Choose a tag to compare
@tobiasraabe tobiasraabe released this 07 Jun 09:40
· 268 commits to main since this release
39bfcdf

Highlights

This release contains the following highlights:

  • Previously, if you accidentally hit the save button on an unchanged task file, the task would be rerun by pytask, although nothing had changed. Now, pytask wouldn't rerun the task because it also compares the hashes of task files, not only the modification timestamp.
  • If you want to enforce rerunning tasks, there is now a --force flag. Take the function name/id of the task and run pytask -k <task id> --force, and the task + its necessary tasks will be executed. Or delete a product from the task you want to rerun.
  • The import mechanism for task modules has been reworked, and errors resolved. Thanks to @NickCrews!

Additionally, the @pytask.mark.parametrize decorator is deprecated and will be removed in pytask v0.4. If you use the decorator, you will have two options:

  1. (Recommended) Upgrade your code to the new approach for repeating tasks described in this tutorial.
  2. Or, pin pytask to pytask<0.4 and silence the deprecation warning by setting silence_parametrize_deprecation = true in your pyproject.toml under [tool.pytask.ini_options].

What's Changed

New Contributors

Full Changelog: v0.3.1...v0.3.2