Skip to content

Commit

Permalink
chore: enable mypy for cli (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsolaas authored Sep 18, 2023
1 parent f2b217a commit da713fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ repos:
rev: v1.4.1
hooks:
- id: mypy
files: ^(src/ecalc/libraries/)
files: ^(src/ecalc/)
exclude: tests|conftest.py
args: ['--config-file=./pyproject.toml']
additional_dependencies:
Expand Down
4 changes: 2 additions & 2 deletions src/ecalc/cli/cli/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from datetime import date
from logging.config import dictConfig
from pathlib import Path
from typing import Optional
from typing import Any, Dict, Optional


class LogLevel(str, enum.Enum):
Expand Down Expand Up @@ -57,7 +57,7 @@ def set_log_path(self, log_path: Path):
self.__configure_logger()

def __configure_logger(self):
log_config = {
log_config: Dict[str, Any] = {
"version": 1,
"disable_existing_loggers": True, # ie keep root logger ++
"formatters": {
Expand Down
2 changes: 1 addition & 1 deletion src/ecalc/cli/cli/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ class DateFormat(str, enum.Enum):
"""DD_MM_YYYY"""


Frequency = enum.Enum("Frequency", {e.name: e.name for e in time_utils.Frequency})
Frequency = enum.Enum("Frequency", {e.name: e.name for e in time_utils.Frequency}) # type: ignore

0 comments on commit da713fc

Please sign in to comment.