Pin black version of nbqa to be reproducible and consistent. Local installation of pre-commit nbqa was using a different version of black in ci/cd cause of local caching. Local would using the latest black version at the time of running pre-commit install while ci/cd will use the latest version of black. It ended up cause pre-commit ci/cd to fail while local to passes. Pinning the black version solves this.
Pin black version of nbqa to be reproducible and consistent. Local installation of pre-commit nbqa was using a different version of black in ci/cd cause of local caching. Local would using the latest black version at the time of running
pre-commit install
while ci/cd will use the latest version of black. It ended up cause pre-commit ci/cd to fail while local to passes. Pinning the black version solves this.