Skip to content

Commit 4e34ec7

Browse files
author
Andrei Neagu
committed
pylint
1 parent bded988 commit 4e34ec7

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/core/settings.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import datetime
2+
from typing import Annotated
23

34
from pydantic import AliasChoices, Field, TypeAdapter, field_validator
45
from servicelib.logging_utils_filtering import LoggerName, MessageSubstring
@@ -23,12 +24,15 @@ class _BaseApplicationSettings(BaseApplicationSettings, MixinLoggingSettings):
2324

2425
# RUNTIME -----------------------------------------------------------
2526

26-
DYNAMIC_SCHEDULER_LOGLEVEL: LogLevel = Field(
27-
default=LogLevel.INFO,
28-
validation_alias=AliasChoices(
29-
"DYNAMIC_SCHEDULER_LOGLEVEL", "LOG_LEVEL", "LOGLEVEL"
27+
DYNAMIC_SCHEDULER_LOGLEVEL: Annotated[
28+
LogLevel,
29+
Field(
30+
default=LogLevel.INFO,
31+
validation_alias=AliasChoices(
32+
"DYNAMIC_SCHEDULER_LOGLEVEL", "LOG_LEVEL", "LOGLEVEL"
33+
),
3034
),
31-
)
35+
]
3236

3337
DYNAMIC_SCHEDULER_LOG_FORMAT_LOCAL_DEV_ENABLED: bool = Field(
3438
default=False,

services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from simcore_service_dynamic_scheduler.core.settings import ApplicationSettings
1111

1212
_the_settings = ApplicationSettings.create_from_envs()
13-
# pylint:disable=no-member
1413
logging.basicConfig(level=_the_settings.DYNAMIC_SCHEDULER_LOGLEVEL.value)
1514
logging.root.setLevel(_the_settings.DYNAMIC_SCHEDULER_LOGLEVEL.value)
1615
config_all_loggers(

0 commit comments

Comments
 (0)