CI move non-standard-import checks over to pre-commit
Like this they're cross-platform, provide faster feedback to devs, and can use pre-commit `pygrep` instead of the custom `invgrep`
This looks fine.  Has there been a discussion somewhere where theres consensus to move as much as possible/convenient to the pre-commit? > This looks fine. Has there been a discussion somewhere where theres consensus to move as much as possible/convenient to the pre-commit?

There hasn't, there was just this discussion as a precedent #36386 , and Will's comment

> These in particular are managed through the configuration file, so they won't differ from being run in pre-commit which has the added bonus of being cross platform

There was one PR (#37136) where using pygrep instead of invgrep revealed a case which wasn't being found.

I'd welcome a discussion about whether this is welcome in general of course - as per this PR's description, I think it would be beneficial can you merge master and pin gon green. > can you merge master and pin gon green.

ping thanks @MarcoGorelli 