Skip to content

Use raw strings to avoid illegal backslash warnings python 12#981

Merged
fneum merged 1 commit intoPyPSA:masterfrom
koen-vg:raw-strings
Mar 19, 2024
Merged

Use raw strings to avoid illegal backslash warnings python 12#981
fneum merged 1 commit intoPyPSA:masterfrom
koen-vg:raw-strings

Conversation

@koen-vg
Copy link
Copy Markdown
Contributor

@koen-vg koen-vg commented Mar 19, 2024

I swear this will be the last of these small boring PRs for a little while, sorry for the barrage.

It seems like snakemake and the whole workflow now works fine with python 12, although it's up to condas mood whether python 11 or 12 is installed. But python 12 does complain about the current use of backslashes in strings in the Snakefile; marking the relevant strings as raw strings removes the warnings.

Checklist

  • I tested my contribution locally and it seems to work fine.
  • Code and workflow changes are sufficiently documented.
  • Changed dependencies are added to envs/environment.yaml.
  • Changes in configuration options are added in all of config.default.yaml.
  • Changes in configuration options are also documented in doc/configtables/*.csv.
  • A release note doc/release_notes.rst is added.

@fneum fneum merged commit 018735d into PyPSA:master Mar 19, 2024
@FabianHofmann
Copy link
Copy Markdown
Contributor

@koen-vg improvements are always welcome, even when they are small

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.

3 participants