Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow report generation to handle pathlib objects #1904

Merged
merged 1 commit into from Oct 14, 2022

Conversation

mbhall88
Copy link
Member

Description

In #1869 I added the ability to use a pathlib.Path object in the script directive. When generating a report where a rule has a Path in the script directory, this function was causing snakemake to error as it assumes the path is a string. This PR makes it explicitly a string.

QC

  • 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).

@mbhall88 mbhall88 changed the title fix: make contains_wildcard handle pathlib objects fix: allow report generation to handle pathlib objects Oct 12, 2022
@sonarcloud
Copy link

sonarcloud bot commented Oct 12, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@johanneskoester johanneskoester merged commit 7c34656 into snakemake:main Oct 14, 2022
@johanneskoester
Copy link
Contributor

Thank you, good catch!

johanneskoester pushed a commit that referenced this pull request Oct 14, 2022
🤖 I have created a release *beep* *boop*
---


##
[7.16.0](v7.15.2...v7.16.0)
(2022-10-14)


### Features

* k8s: add --k8s-cpu-scalar
([#1857](#1857))
([a067a1b](a067a1b))


### Bug Fixes

* allow report generation to handle pathlib objects
([#1904](#1904))
([7c34656](7c34656))
* fix false reruns after checkpoints
([#1907](#1907))
([dc5af12](dc5af12))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants