From 0030920558d8856a17520cad7a58a520fa3e6df6 Mon Sep 17 00:00:00 2001 From: Ari Date: Fri, 20 May 2022 12:33:25 -0400 Subject: [PATCH] fixed up typing --- api/pyproject.toml | 4 ++++ api/tests/unittests/api/test_automations.py | 3 ++- api/tests/unittests/test_json_serializer.py | 1 - 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/api/pyproject.toml b/api/pyproject.toml index 67816f8..5101582 100644 --- a/api/pyproject.toml +++ b/api/pyproject.toml @@ -34,6 +34,10 @@ omit = ["./venv/*", "tests/*"] module = "decouple.*" ignore_missing_imports = true +[[tool.mypy.overrides]] +module = "ruamel.*" +ignore_missing_imports = true + [[tool.mypy.overrides]] module = "tests.*" ignore_missing_imports = true \ No newline at end of file diff --git a/api/tests/unittests/api/test_automations.py b/api/tests/unittests/api/test_automations.py index 317e09e..66e3641 100644 --- a/api/tests/unittests/api/test_automations.py +++ b/api/tests/unittests/api/test_automations.py @@ -1,5 +1,6 @@ -import yaml from unittest import TestCase + +import yaml from fastapi.testclient import TestClient from src.api.app import make_app diff --git a/api/tests/unittests/test_json_serializer.py b/api/tests/unittests/test_json_serializer.py index 95c548d..eae32c5 100644 --- a/api/tests/unittests/test_json_serializer.py +++ b/api/tests/unittests/test_json_serializer.py @@ -1,7 +1,6 @@ import json from unittest import TestCase - from src.json_serializer import json_dumps from src.yaml_serializer.types import NOT_IMPLEMENTED_SV_MSG, SecretValue