Fix black version to 24.x / Support pytest 8.0
Since different major versions of black can produce different formatting, use a fixed version.
Add --rootdir to pytest arguments, so pytest 8.x works.
Edited by Maik Nijhuis
Since different major versions of black can produce different formatting, use a fixed version.
Add --rootdir to pytest arguments, so pytest 8.x works.