I have an Ergodox Moonlander on which I have a few of the macro keys mapped to specific functions within PyCharm like auto-formatting, linting and type checking.
It’s helpful because I don’t have to remember key combinations and it means much faster feedback (and fewer broken builds).