Currently the CI does not pin versions for black and flake8. We should add a pre-commit config (with appropriate instructions in the README.md), which could then be used in the CI to make sure it uses the same package versions as the repo maintainers.