diff --git a/Makefile b/Makefile index fb55d236..db74c0eb 100644 --- a/Makefile +++ b/Makefile @@ -59,6 +59,7 @@ clean-docker-containers: ## Clean up any remaining docker containers format: ruff check --select I --fix . ruff format . + ruff check poetry run mypy . poetry sort diff --git a/tests/test_logging.py b/tests/test_logging.py index 72c1060c..fc108088 100644 --- a/tests/test_logging.py +++ b/tests/test_logging.py @@ -65,8 +65,8 @@ class App: handlers = logging.get_handlers(app) assert len(handlers) == 1 - assert type(handlers[0]) == builtin_logging.StreamHandler - assert type(handlers[0].formatter) == logging.CustomLogFormatter + assert type(handlers[0]) is builtin_logging.StreamHandler + assert type(handlers[0].formatter) is logging.CustomLogFormatter assert not (tmpdir / "foo").exists() @@ -85,8 +85,8 @@ class App: handlers = logging.get_handlers(app) assert len(handlers) == 1 - assert type(handlers[0]) == builtin_logging.StreamHandler - assert type(handlers[0].formatter) == logging.JSONFormatter + assert type(handlers[0]) is builtin_logging.StreamHandler + assert type(handlers[0].formatter) is logging.JSONFormatter # assert type(handlers[1]) == builtin_logging_handlers.WatchedFileHandler # assert type(handlers[1].formatter) == logging.JSONFormatter