You're seeking a technical solution to unreasonable requests being made by people of your project. Set boundaries. Put your foot down.
I was about to answer something like this: the team has to follow. As all changes, though, this goes with some struggle.
Stuff that may help resolving that struggle:
* help them configure their beloved editors * help them avoid mistakenly committing: https://pre-commit.com/ helped us a lot * stick to an agreed-upon version of flake8
Kind regards Kristoffel