title: How to run tests before the commit in Pycharm/Intellij Idea
body: <p>Is it possible to run a specified script before any commit in Pycharm/Intellij Idea? I want to make sure that tests are not broken.
  Thanks.</p>