Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MaferMazu committed Aug 2, 2024
1 parent dea0046 commit b0c99b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test-lint: ## Run code linting tests
pylint --errors-only --enable=unused-import,unused-argument --ignore=templates --ignore=docs/_ext ${SRC_DIRS}

test-types: ## Run type checks.
mypy --exclude=templates --ignore-missing-imports --implicit-reexport ${SRC_DIRS}
mypy --exclude=templates --ignore-missing-imports --implicit-reexport --strict ${SRC_DIRS}

format: ## Format code automatically
black $(BLACK_OPTS)
Expand Down
4 changes: 3 additions & 1 deletion tutorpicasso/commands/enable_themes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import os
import subprocess

from typing import Any

import click
from tutor import config as tutor_config

Expand All @@ -18,7 +20,7 @@ def enable_themes() -> None:
.decode("utf-8")
.strip()
)
config = tutor_config.load(tutor_root)
config: Any = tutor_config.load(tutor_root)

if config.get("PICASSO_THEMES"):
for theme in config["PICASSO_THEMES"]:
Expand Down
4 changes: 2 additions & 2 deletions tutorpicasso/commands/run_extra_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import subprocess

# Was necessary to use this for compatibility with Python 3.8
from typing import List
from typing import List, Any

import click
from tutor import config as tutor_config
Expand All @@ -28,7 +28,7 @@ def run_extra_commands() -> None:
run_command(command)


def validate_commands(commands: List[str]) -> None:
def validate_commands(commands: Any) -> None:
"""
Takes all the extra commands sent through config.yml and verifies that
all the commands are correct before executing them
Expand Down

0 comments on commit b0c99b2

Please sign in to comment.