from typing import Tuple
import requests


def create_sq_project(sq_server: str, auth: Tuple, proj_id: str) -> str:
    """Creates a SonarQube project for the current project"""

    url = f"{sq_server}/api/projects/create"
    name = f"project-{proj_id}"
    args = {"name": name, "project": name, "visibility": "public"}

    requests.post(url=url, data=args, auth=auth)

    return name