diff --git a/.flake8 b/.flake8 index 5a58a1a..65cca96 100644 --- a/.flake8 +++ b/.flake8 @@ -1,4 +1,4 @@ [flake8] -ignore = W503, E701 +ignore = E203, W503, E701 exclude = .git,venv,env max-line-length = 119 diff --git a/tests/logs/test_rp_logger.py b/tests/logs/test_rp_logger.py index 6c369fb..2bb7d58 100644 --- a/tests/logs/test_rp_logger.py +++ b/tests/logs/test_rp_logger.py @@ -85,9 +85,11 @@ def test_stacklevel_record_make(logger_handler): if sys.version_info < (3, 11): assert record.stack_info.endswith( - 'logger.error("test_log", exc_info=RuntimeError("test"), stack_info=inspect.stack(), stacklevel=1)') + 'logger.error("test_log", exc_info=RuntimeError("test"), stack_info=inspect.stack(), stacklevel=1)' + ) else: assert record.stack_info.endswith( - 'logger.error("test_log", exc_info=RuntimeError("test"), stack_info=inspect.stack(), stacklevel=2)') + 'logger.error("test_log", exc_info=RuntimeError("test"), stack_info=inspect.stack(), stacklevel=2)' + ) assert record.pathname == __file__