Skip to content

Commit

Permalink
fix: import type failues
Browse files Browse the repository at this point in the history
Dynaconf + cally providers have import errors for typing, this isn't
siginifcant for the purpose we're using.
  • Loading branch information
techman83 committed Mar 18, 2024
1 parent 4c21821 commit b3414e4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ skip-string-normalization = true
[tool.coverage.run]
omit = ["tests/*"]

[[tool.mypy.overrides]]
module = "dynaconf.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "cally.providers.*"
ignore_missing_imports = true

[tool.isort]
profile = "black"
src_paths = ["src", "tests"]
Expand Down
2 changes: 1 addition & 1 deletion src/cally/cli/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Optional, Union

import click
from dynaconf import Dynaconf # type: ignore
from dynaconf import Dynaconf

from . import types as cally_types
from .validators import BASE_CALLY_CONFIG
Expand Down
2 changes: 1 addition & 1 deletion src/cally/cli/config/loader.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from pathlib import Path

import yaml
from dynaconf import LazySettings # type: ignore
from dynaconf import LazySettings


def load(obj: LazySettings, *args, **kwargs) -> None: # noqa: ARG001
Expand Down
3 changes: 1 addition & 2 deletions tests/cli/config/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import os
from unittest import mock

from dynaconf import ValidationError # type: ignore

from cally.cli.config import CallyConfig
from cally.cli.config import types as cally_types
from dynaconf import ValidationError

from ... import CallyTestHarness

Expand Down

0 comments on commit b3414e4

Please sign in to comment.