:white_check_mark: TST: Update sync flake8 tests

- [x] related to #44177
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them

I sent a PR yesterday #44177 which was aimed at adding anchors to the `pre-commit-config.yaml` file 

However, somehow I forgot to also update the corresponding test so this PR should remove the references to `yesqa` dependencies checks 
