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