diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 349dcc77..d99abf96 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,6 +37,7 @@ repos: files: ^nox/ args: [] additional_dependencies: + - colorlog - dependency-groups>=1.2 - jinja2 - packaging diff --git a/nox/logger.py b/nox/logger.py index 333d8bdb..e3ecf650 100644 --- a/nox/logger.py +++ b/nox/logger.py @@ -46,7 +46,7 @@ def format(self, record: Any) -> str: return super().format(record) -class NoxColoredFormatter(ColoredFormatter): # type: ignore[misc] +class NoxColoredFormatter(ColoredFormatter): def __init__( self, datefmt: Any = None, @@ -69,7 +69,7 @@ def __init__( def format(self, record: Any) -> str: if record.levelname == "OUTPUT": return self._simple_fmt.format(record) - return super().format(record) # type: ignore[no-any-return] + return super().format(record) class LoggerWithSuccessAndOutput(logging.getLoggerClass()): # type: ignore[misc]