code: def check(self, diff):
          
          path = diff.b_path
          assert any(
              path.endswith(ext)
              for ext in importlib.machinery.SOURCE_SUFFIXES
          )
docs: Check that the new file introduced is a python source file