Skip to content

Commit 4312f42

Browse files
committed
Disable E203 of flake8, since conflict with black
1 parent 9f4fece commit 4312f42

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[flake8]
2-
ignore = W503, E701
2+
ignore = E203, W503, E701
33
exclude = .git,venv,env
44
max-line-length = 119

tests/logs/test_rp_logger.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,11 @@ def test_stacklevel_record_make(logger_handler):
8585

8686
if sys.version_info < (3, 11):
8787
assert record.stack_info.endswith(
88-
'logger.error("test_log", exc_info=RuntimeError("test"), stack_info=inspect.stack(), stacklevel=1)')
88+
'logger.error("test_log", exc_info=RuntimeError("test"), stack_info=inspect.stack(), stacklevel=1)'
89+
)
8990
else:
9091
assert record.stack_info.endswith(
91-
'logger.error("test_log", exc_info=RuntimeError("test"), stack_info=inspect.stack(), stacklevel=2)')
92+
'logger.error("test_log", exc_info=RuntimeError("test"), stack_info=inspect.stack(), stacklevel=2)'
93+
)
9294

9395
assert record.pathname == __file__

0 commit comments

Comments
 (0)