snakemake / snakefmt

The uncompromising Snakemake code formatter
MIT License
147 stars 28 forks source link

fix: spacing in consecutive braces in f-string #223

Closed mbhall88 closed 5 months ago

mbhall88 commented 5 months ago

This PR closes #222

I also took the opportunity to update the min. black version to v24.3.0 which contains a security vulnerability fix. In the process I realised that the process of finding the project root directory changed in black v24.2 and we were using their function for doing this. Essentially they now ignore a pyproject.toml file if it doesn't contain [tool.black], which makes a bunch of tests fail and isn't quite the behaviour we want. So I have essentially just copied their function from v24.1.0 and pasted it into our code.