feat: make shutil available in resource expressions (i.e. for --default-resources and --set-resources), can be used to e.g. dynamically decide about the tmpdir to be used based on shutil.disk_usage(system_tmpdir)#3535
Conversation
…lt-resources and --set-resources), can be used to e.g. dynamically decide about the tmpdir to be used based on shutil.disk_usage(system_tmpdir)
📝 WalkthroughWalkthroughThe changes extend and clarify the help text for the Changes
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (35)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
🤖 I have created a release *beep* *boop* --- ## [9.3.0](v9.2.1...v9.3.0) (2025-04-16) ### Features * keep temp files in case they are an input of target rules that that don't have their own output ([#3536](#3536)) ([a2caa0b](a2caa0b)) * make shutil available in resource expressions (i.e. for --default-resources and --set-resources), can be used to e.g. dynamically decide about the tmpdir to be used based on shutil.disk_usage(system_tmpdir) ([#3535](#3535)) ([aeab67f](aeab67f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
…lt-resources and --set-resources), can be used to e.g. dynamically decide about the tmpdir to be used based on shutil.disk_usage(system_tmpdir) (snakemake#3535) <!--Add a description of your PR here--> ### QC <!-- Make sure that you can tick the boxes below. --> * [ ] The PR contains a test case for the changes or the changes are already covered by an existing test case. * [ ] The documentation (`docs/`) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Enhanced help text for the `--default-resources` argument with detailed explanations on tmpdir resource usage. - Improved readability of the help text for the `--local-storage-prefix` command-line argument. - **New Features** - Resource expressions now support access to the `shutil` module, enabling more flexible resource evaluations. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
🤖 I have created a release *beep* *boop* --- ## [9.3.0](snakemake/snakemake@v9.2.1...v9.3.0) (2025-04-16) ### Features * keep temp files in case they are an input of target rules that that don't have their own output ([snakemake#3536](snakemake#3536)) ([a2caa0b](snakemake@a2caa0b)) * make shutil available in resource expressions (i.e. for --default-resources and --set-resources), can be used to e.g. dynamically decide about the tmpdir to be used based on shutil.disk_usage(system_tmpdir) ([snakemake#3535](snakemake#3535)) ([aeab67f](snakemake@aeab67f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
QC
docs/) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake).Summary by CodeRabbit
Documentation
--default-resourcesargument with detailed explanations on tmpdir resource usage.--local-storage-prefixcommand-line argument.New Features
shutilmodule, enabling more flexible resource evaluations.