workflow-python-lint In the repo settings, open Branches, add a rule for main, and enable Require a pull request before merging. The workflow in this repository will fail if the python code does not pass a lint test (black) or any of the tests fail.