Skip to content

Commit

Permalink
chore(deps): update dependency ruff to ^0.8.0 (#395)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency ruff to ^0.8.0

* MYPY BS

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Einar Omang <[email protected]>
  • Loading branch information
renovate[bot] and einarmo authored Nov 25, 2024
1 parent 934a01b commit 5ebc1f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion cognite/extractorutils/unstable/configuration/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,5 +235,10 @@ class LogConsoleHandlerConfig(ConfigModel):
LogHandlerConfig = Union[LogFileHandlerConfig, LogConsoleHandlerConfig]


# Mypy BS
def _log_handler_default() -> List[Union[LogFileHandlerConfig, LogConsoleHandlerConfig]]:
return [LogConsoleHandlerConfig(level=LogLevel.INFO)]


class ExtractorConfig(ConfigModel):
log_handlers: List[LogHandlerConfig] = Field(default_factory=lambda: [LogConsoleHandlerConfig(level=LogLevel.INFO)])
log_handlers: List[LogHandlerConfig] = Field(default_factory=_log_handler_default)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ experimental = ["cognite-sdk-experimental"]

[tool.poetry.group.dev.dependencies]
mypy = "1.13.0"
ruff = "^0.7.0"
ruff = "^0.8.0"
pytest = "^8.0.0"
pytest-cov = "^6.0.0"
sphinx = "^7.0.0"
Expand Down

0 comments on commit 5ebc1f5

Please sign in to comment.