Skip to content

Commit

Permalink
chore: cleanup with black and isort
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithEmad committed Nov 18, 2023
1 parent ba24be5 commit 884ecc9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
1 change: 0 additions & 1 deletion tutorcairn/__about__.py
Expand Up @@ -6,4 +6,3 @@

if __version_suffix__:
__version__ += "-" + __version_suffix__

15 changes: 11 additions & 4 deletions tutorcairn/plugin.py
@@ -1,12 +1,12 @@
from __future__ import annotations
from glob import glob

import os
import shlex
import typing as t
from glob import glob

import click
import pkg_resources

from tutor import hooks

from .__about__ import __version__
Expand Down Expand Up @@ -115,7 +115,9 @@


@hooks.Filters.APP_PUBLIC_HOSTS.add()
def _print_superset_host(hosts: list[str], context_name: t.Literal["local", "dev"]):
def _print_superset_host(
hosts: list[str], context_name: t.Literal["local", "dev"]
) -> list[str]:
if context_name == "dev":
hosts.append("{{ CAIRN_HOST }}:2247")
else:
Expand Down Expand Up @@ -149,7 +151,12 @@ def _print_superset_host(hosts: list[str], context_name: t.Literal["local", "dev
@click.argument("username")
@click.argument("email")
def create_user_command(
bootstrap_dashboards: bool, admin: bool, password: str, course_ids: list[str], username: str, email: str
bootstrap_dashboards: bool,
admin: bool,
password: str,
course_ids: list[str],
username: str,
email: str,
) -> t.Iterable[tuple[str, str]]:
admin_opt = " --admin" if admin else ""

Expand Down

0 comments on commit 884ecc9

Please sign in to comment.