BUG: Inconsistent lint environments
As of https://github.com/pandas-dev/pandas/blob/3a15e47374762cbc89a6742c4239a069414dbbfc/.pre-commit-config.yaml#L8 , pre-commit uses flake8 3.8, where the other checks use 3.7.

As of https://github.com/pandas-dev/pandas/blob/11d5fc9e89ad8e238ece42890482bae875d9de98/environment.yml#L23 , conda environments use isort 5.2, where pre-commit uses 4.3.

This makes it impossible to create a commit which passes pre-commit and CI.