Skip to content

Add ignore_files and ignore_brief_files Format #30

@shaoerkuai

Description

@shaoerkuai

Now it supports filter the specific files to be printed, but sometimes I just want to remove unnecessary frames likely from my global catch decorator rather than only shows fixed packages, so I think it's good to filter this..

Example:

Traceback with variables (most recent call last):
~~  File "D:\Program Files\Python38\lib\site-packages\THIS_FRAME_I_WANT_TO_REMOVE.py", line 69, in wrapper~~
~~  . try:~~
~~  >     return func(*args, **kwargs)~~
~~      args = ('a', 'b', 'c')~~
~~      kwargs = {}~~
~~      e = RuntimeError()~~
~~      catch_traceback = True~~
~~      func = <function test_exception at 0x000001C3944AC430>~~
~~      print_in_env = True~~
~~      print_signature = True~~
~~      re_raise = True~~
  File "D:\xxx\xxx\library\common\test.py", line 18, in test_exception
  . print("the function raises error")
  > raise RuntimeError
      d = 'xxx'
      e = 'xxx'
      f = 'xxx'
builtins.RuntimeError: 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions