Skip to content

Commit

Permalink
Disable E203 of flake8, since conflict with black
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Dec 19, 2024
1 parent 9f4fece commit 4312f42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[flake8]
ignore = W503, E701
ignore = E203, W503, E701
exclude = .git,venv,env
max-line-length = 119
6 changes: 4 additions & 2 deletions tests/logs/test_rp_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__

0 comments on commit 4312f42

Please sign in to comment.