v0.3.2
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 runpytask -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:
- (Recommended) Upgrade your code to the new approach for repeating tasks described in this tutorial.
- Or, pin pytask to
pytask<0.4
and silence the deprecation warning by settingsilence_parametrize_deprecation = true
in yourpyproject.toml
under[tool.pytask.ini_options]
.
What's Changed
- Update version numbers in animations. by @tobiasraabe in #345
- Add dependabot for GitHub actions. by @tobiasraabe in #348
- Publish
db
. by @tobiasraabe in #352 - Refactor nodes. by @tobiasraabe in #355
- Add
-f/--force
to force executing tasks. by @tobiasraabe in #354 - Add hashing to avoid re-executing tasks when modification times changed. by @tobiasraabe in #357
- Update
update_plugin_list.py
. by @tobiasraabe in #364 - Rework panel with sphinx-design. by @tobiasraabe in #365
- Add light and dark logos for the documentation. by @tobiasraabe in #366
- Fix the panel on the index page of the documentation. by @tobiasraabe in #367
- Fix error introduced in #364. by @tobiasraabe in #369
- Revert change turning Node.state() into a hook. by @tobiasraabe in #370
- Rename Node back to MetaNode. by @tobiasraabe in #371
- Clearer documentation for
pytask dag -o
. by @tobiasraabe in #376 - Conditionally skip tests on MacOS. by @tobiasraabe in #378
- Deprecate
@pytask.mark.parametrize
. by @tobiasraabe in #381 - Fix the import mechanism for task modules. by @NickCrews in #373
- Update changes. by @tobiasraabe in #383
New Contributors
- @dependabot made their first contribution in #349
- @NickCrews made their first contribution in #373
Full Changelog: v0.3.1...v0.3.2