Handvask / handvask

Line too long FLK-E501
Style
Minor
a year agoa year old
line too long (103 > 88 characters)
106        "-a",
107        "--all",
108        action="store_true",
109        help="Whether all optimal/intermediate solutions should be returned (only intermediate works)",110    )
111    parser.add_argument(
112        "-t",
line too long (159 > 88 characters)
 21HEADERS = {"X-Api-Key": os.getenv("API_KEY")}
 22SOLVER_NAME = os.getenv("SOLVER_IMAGE")
 23
 24test_problem = "int: i; array[1..2] of var 0..i: x; constraint x[1] < i /\ x[2] < i; solve :: int_search( x, input_order, indomain_min ) maximize x[1] + x[2];" 25test_data = "i = 1000000;"
 26test_solvers = ["gecode", "chuffed", "or-tools"]
 27test_objective = True
line too long (192 > 88 characters)
 94        command=["bash"],
 95        args=[
 96            "-c",
 97            f'echo "{base64.b64encode(problem.encode("utf8")).decode("ascii")}" > /input/model.b64.mzn && echo "{base64.b64encode(data.encode("utf8")).decode("ascii")}" > /input/data.b64.dzn', 98        ],
 99        volume_mounts=[client.V1VolumeMount(mount_path="/input", name="input")],
100    )
line too long (106 > 88 characters)
220
221class DBHandler(object):
222    """
223    A simple singleton class that makes sure that only one connection to the database is ever initialised.224    """
225
226    def __new__(cls):
line too long (94 > 88 characters)
 72        HTTPException: Incorrect username or password
 73
 74    Returns:
 75        dict: A dictionary telling if the login attempt was successful, as well as an included 76        access token and token_type
 77    """
 78    user = select(u for u in User if u.username == form_data.username)[:]