CLN: consistently put '|' at start of line in pygrep hooks #39301
- [x] closes #39301
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them


I moved the `|` symbols from the end of the line to the beginning of the line in pygrep hooks.

I also added the `|` symbol in the `non-standard-imports-in-tests` at the beginning of the line 93, which was missing as @MarcoGorelli pointed.

thanks @gcmaciel 

prob need a precommit meta-hook here (heheh)