Releases: pytask-dev/pytask
v0.3.1
What's Changed
- Fix bug when passing no path on the command line. by @tobiasraabe in #337
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #341
- [automated] Update plugin list by @github-actions in #340
Full Changelog: v0.3.0...v0.3.1
v0.3.0
Highlights
This release includes a breaking change due to internal refactorings. The change affects how command line options and the configuration file are loaded and validated. For users, the changes are subtle; the help pages of the commands have prettier options and default values.
Make sure to upgrade pytask and the plugins to v0.3 or pin the packages to <0.3.
There is some delay until the updates for pytask and its plugins are available. Be aware of errors when using mixed v0.2 and v0.3 installations.
The most significant benefit is for developers who want to add command line options and configuration values. The parsing can now be handled with proper click types, for example, EnumChoice to implement choice options. Defaults are attached to command line options and are automatically displayed in the help pages.
What's Changed
- Update workflow status badge. by @tobiasraabe in #326
- Deprecate INI configurations. by @tobiasraabe in #313
- Add ruff to linters. by @tobiasraabe in #329
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #328
- Refactor
database.py. by @tobiasraabe in #332 - Add a guide to migrate from scripts to pytask. by @tobiasraabe in #330
- Upgrade attrs and related code. by @tobiasraabe in #333
- Use ruff with all rules selected by default. by @pre-commit-ci in #331
- Set target version for ruff. by @tobiasraabe in #334
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #335
- Extend the API documentation. by @tobiasraabe in #336
Full Changelog: v0.2.7...v0.3.0
v0.2.7
News
This is probably the last patch release before the v0.3.0 release. There are some highlights like the new terminal animations in the documentation. I hope you enjoy them.
What's Changed
- Replace pydot with pygraphviz. by @tobiasraabe in #308
- Add refurb to pre-commit hooks. by @tobiasraabe in #311
- Fix links in docs. by @tobiasraabe in #310
- Add Python 3.11 to CI. by @tobiasraabe in #307
- Clarify example in docs on nested dependencies and products. by @tobiasraabe in #318
- Formalize more choice options to enums. by @tobiasraabe in #321
- Add terminal animations. by @tobiasraabe in #322
- Collect automatically created tasks. by @tobiasraabe in #325
Full Changelog: v0.2.6...v0.2.7
v0.2.6
What's Changed
- Add docformatter. by @tobiasraabe in #297
- Move and publish some functions related to warnings. by @tobiasraabe in #298
- [automated] Update plugin list by @github-actions in #300
- fix[docs]: Fix mismatched backticks by @augustebaum in #303
- Remove colorama. by @tobiasraabe in #305
- Fix typo in link and adjust documentation for warnings. by @hmgaudecker in #306
New Contributors
Many thanks to the new contributors 🙇!
- @augustebaum made their first contribution in #303
- @hmgaudecker made their first contribution in #306
Full Changelog: v0.2.5...v0.2.6
v0.2.5
Highlight
The highlight of this release is a dry-run mode that shows which tasks will be run during the next execution. Just type pytask --dry-run. Here is the documentation.
What's Changed
- Pin pybaum to >=0.1.1. by @tobiasraabe in #288
pytask collectdisplays shortened task names. by @tobiasraabe in #289- Implement a dry-run mode. by @tobiasraabe in #290
- Fix bug with
--pdband pytask-latex. by @tobiasraabe in #296
Full Changelog: v0.2.4...v0.2.5
v0.2.4
What's Changed
- Some pages of the documentation have been improved. by @tobiasraabe in #279 and #281
- Don't display traceback with 'previous task failed' with verbose <= 1. by @tobiasraabe in #285
- Show all files that are not produced by a task. by @tobiasraabe in #287
Full Changelog: v0.2.3...v0.2.4
v0.2.3
Highlights
This release includes some minor fixes. For example, deprecation warnings are not activated by default anymore, and you can remove the filters for these warnings again.
What's Changed
- Fix
pytask cleanwhen git is not installed. by @tobiasraabe in #276 - Do not capture
DeprecationWarningandPendingDeprecationWarningby default. by @tobiasraabe in #277 - Reduce the number of locations where warnings are raised. by @tobiasraabe in #278
Full Changelog: v0.2.2...v0.2.3
v0.2.2
Highlight
The command pytask clean has been reworked! 🎉
pytask clean allows to clean your project from obsolete files. For example, when you renamed a product of a task and the old product still exists in the build folder.
All files which are not known by pytask or git can be cleaned.
You find more information in the tutorial.
What's Changed
- Fix info under live execution table. by @tobiasraabe in #267
- Rework the
cleancommand. by @tobiasraabe in #273
Full Changelog: v0.2.1...v0.2.2
v0.2.1
Highlights
This release has two features.
-
A new configuration value,
sort_tableallows you to control whether the table after the execution is sorted alphabetically or ordered by execution. Here is the entry in the documentation. Thanks to @timmens for his first contribution 🎉. -
pytask is now able to capture warnings and to report them. Here is an example with the infamous
SettingWithCopyWarningfrom pandas

Take a look at the how-to guide about capturing warnings to learn more about the feature.Currently, this feature does not work when you parallelize the execution with pytask-parallel. Support is planned.
What's Changed
- Add svg for profiling tasks. by @tobiasraabe in #259
- Add sort_table option by @timmens in #261
- Capture warnings. by @tobiasraabe in #263
New Contributors
Full Changelog: v0.2.0...v0.2.1
v0.2.0
The v0.2 release contains several new features and breaking changes with v0.1.x versions of the plugins for the good of the whole project.
Highlights
- The documentation is improved a lot and features shiny svgs.
- Parametrizations are now a lot easier! Repeat your tasks in loops instead of parametrizations.
import numpy as np
import pytask
for i in range(10):
@pytask.mark.task
def task_create_random_data(produces=f"data_{i}.pkl", seed=i):
rng = np.random.default_rng(seed)
...pyproject.tomlis the new configuration file for pytask. This release soft-deprecates all ini-configurations. Here is more information.- Dependencies and products can be nested to allow for more structure.
The release also allows the plugins to provide better interfaces in their next releases. Keep an eye on new releases in the coming days.
What's Changed
- Use pybaum for more flexible dependencies and products. by @tobiasraabe in #211
- Implement a new loop-based approach to parametrizations. by @tobiasraabe in #229
- Move documenation to MyST. by @tobiasraabe in #232
- Add a counter under the execution table to show completed tasks. by @tobiasraabe in #252
Full Changelog: v0.1.9...v0.2.0
