diff --git a/ruff.toml b/ruff.toml index ebdb0218..f361d1bd 100644 --- a/ruff.toml +++ b/ruff.toml @@ -1,6 +1,6 @@ # Enforce pyflakes(F), pycodestyle(E, W), isort (I), bugbears (B), and pep8-naming (N) rules select = ["F", "E", "W", "I", "B", "N"] line-length = 100 -exclude = ["tests/exceptions/source"] +exclude = ["tests/exceptions/source/*"] [pycodestyle] max-doc-length = 100 diff --git a/tests/exceptions/output/diagnose/attributes.txt b/tests/exceptions/output/diagnose/attributes.txt index a243886a..9468822a 100644 --- a/tests/exceptions/output/diagnose/attributes.txt +++ b/tests/exceptions/output/diagnose/attributes.txt @@ -1,11 +1,11 @@ Traceback (most recent call last): - File "tests/exceptions/source/diagnose/attributes.py", line 27, in  + File "tests/exceptions/source/diagnose/attributes.py", line 26, in  foo() └  - File "tests/exceptions/source/diagnose/attributes.py", line 23, in foo + File "tests/exceptions/source/diagnose/attributes.py", line 22, in foo ... + 1 + bar(a).b + a.forbidden + a.nope.a + x.__bool__ or a. b . isdigit() and .3 + ...  │ │ │ │ │ │ │ │ └   │ │ │ │ │ │ │ └ '123' diff --git a/tests/exceptions/output/diagnose/parenthesis.txt b/tests/exceptions/output/diagnose/parenthesis.txt index 52bc8256..ba43271e 100644 --- a/tests/exceptions/output/diagnose/parenthesis.txt +++ b/tests/exceptions/output/diagnose/parenthesis.txt @@ -1,16 +1,16 @@ Traceback (most recent call last): - File "tests/exceptions/source/diagnose/parenthesis.py", line 48, in  + File "tests/exceptions/source/diagnose/parenthesis.py", line 47, in  e() └  - File "tests/exceptions/source/diagnose/parenthesis.py", line 44, in e + File "tests/exceptions/source/diagnose/parenthesis.py", line 43, in e ) + d(()) + a  │ └ 1  └  - File "tests/exceptions/source/diagnose/parenthesis.py", line 37, in d + File "tests/exceptions/source/diagnose/parenthesis.py", line 36, in d ; z = (x * y); y = (j or xyz.val * c() \  │ │ │ │ │ │ │ └   │ │ │ │ │ │ └ 123 @@ -21,20 +21,20 @@  │ └ 2  └ 10 - File "tests/exceptions/source/diagnose/parenthesis.py", line 29, in c + File "tests/exceptions/source/diagnose/parenthesis.py", line 28, in c x.val += 456 and b() │ │ └  │ └ 123 └ <__main__.XYZ object at 0xDEADBEEF> - File "tests/exceptions/source/diagnose/parenthesis.py", line 23, in b + File "tests/exceptions/source/diagnose/parenthesis.py", line 22, in b foo[("baz")] = bar() + (a(5, baz)) │ │ │ └ 0 │ │ └  │ └  └ {} - File "tests/exceptions/source/diagnose/parenthesis.py", line 18, in a + File "tests/exceptions/source/diagnose/parenthesis.py", line 17, in a (a, b, x.val, ) = 12, 15 / c, 17  │ │ │ │ └ 0  │ │ │ └ 9 diff --git a/tests/exceptions/output/diagnose/source_multilines.txt b/tests/exceptions/output/diagnose/source_multilines.txt index 7edc8848..dcf492a3 100644 --- a/tests/exceptions/output/diagnose/source_multilines.txt +++ b/tests/exceptions/output/diagnose/source_multilines.txt @@ -1,23 +1,23 @@ Traceback (most recent call last): - File "tests/exceptions/source/diagnose/source_multilines.py", line 40, in  + File "tests/exceptions/source/diagnose/source_multilines.py", line 39, in  bug_1(10) └  - File "tests/exceptions/source/diagnose/source_multilines.py", line 13, in bug_1 + File "tests/exceptions/source/diagnose/source_multilines.py", line 12, in bug_1 """ + n / 0) ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/diagnose/source_multilines.py", line 46, in  + File "tests/exceptions/source/diagnose/source_multilines.py", line 45, in  bug_2(1, string, 3) │ └ 'multi-lines\n' └  - File "tests/exceptions/source/diagnose/source_multilines.py", line 17, in bug_2 + File "tests/exceptions/source/diagnose/source_multilines.py", line 16, in bug_2 return (1 / 0 + a + b + \  │ └ 'multi-lines\n'  └ 1 @@ -26,12 +26,12 @@ Traceback (most recent call last): - File "tests/exceptions/source/diagnose/source_multilines.py", line 52, in  + File "tests/exceptions/source/diagnose/source_multilines.py", line 51, in  bug_3(string) │ └ 'multi-lines\n' └  - File "tests/exceptions/source/diagnose/source_multilines.py", line 23, in bug_3 + File "tests/exceptions/source/diagnose/source_multilines.py", line 22, in bug_3 , string, 20 / 0)  └ 'multi-lines\n' @@ -39,11 +39,11 @@ Traceback (most recent call last): - File "tests/exceptions/source/diagnose/source_multilines.py", line 58, in  + File "tests/exceptions/source/diagnose/source_multilines.py", line 57, in  bug_4() └  - File "tests/exceptions/source/diagnose/source_multilines.py", line 30, in bug_4 + File "tests/exceptions/source/diagnose/source_multilines.py", line 29, in bug_4 "bar": a / b,  │ └ 0  └ 1 diff --git a/tests/exceptions/output/diagnose/syntax_highlighting.txt b/tests/exceptions/output/diagnose/syntax_highlighting.txt index 370ac7b8..38f77ac6 100644 --- a/tests/exceptions/output/diagnose/syntax_highlighting.txt +++ b/tests/exceptions/output/diagnose/syntax_highlighting.txt @@ -1,11 +1,11 @@ Traceback (most recent call last): - File "tests/exceptions/source/diagnose/syntax_highlighting.py", line 32, in  + File "tests/exceptions/source/diagnose/syntax_highlighting.py", line 31, in  e(0) └  - File "tests/exceptions/source/diagnose/syntax_highlighting.py", line 28, in e + File "tests/exceptions/source/diagnose/syntax_highlighting.py", line 27, in e x in [1], x in (1,), x in {1}, x in {1: 1}, d() │ │ │ │ └  │ │ │ └ 0 @@ -13,19 +13,19 @@ │ └ 0 └ 0 - File "tests/exceptions/source/diagnose/syntax_highlighting.py", line 24, in d + File "tests/exceptions/source/diagnose/syntax_highlighting.py", line 23, in d min(range(1, 10)), list(), dict(), c(), ...  └  - File "tests/exceptions/source/diagnose/syntax_highlighting.py", line 20, in c + File "tests/exceptions/source/diagnose/syntax_highlighting.py", line 19, in c 1, 2.5, 3.0, 0.4, "str", r"rrr", rb"binary", b()  └  - File "tests/exceptions/source/diagnose/syntax_highlighting.py", line 16, in b + File "tests/exceptions/source/diagnose/syntax_highlighting.py", line 15, in b a() or False == None != True └  - File "tests/exceptions/source/diagnose/syntax_highlighting.py", line 12, in a + File "tests/exceptions/source/diagnose/syntax_highlighting.py", line 11, in a 1 / 0 + 1 * 0 - 1 % 0 // 1**0 @ 1 # Error ZeroDivisionError: division by zero diff --git a/tests/exceptions/output/others/exception_in_property.txt b/tests/exceptions/output/others/exception_in_property.txt index d529316a..f2e0bb72 100644 --- a/tests/exceptions/output/others/exception_in_property.txt +++ b/tests/exceptions/output/others/exception_in_property.txt @@ -1,12 +1,12 @@ Traceback (most recent call last): - File "tests/exceptions/source/others/exception_in_property.py", line 23, in + File "tests/exceptions/source/others/exception_in_property.py", line 22, in value = a.value │ └ └ <__main__.A object at 0xDEADBEEF> -> File "tests/exceptions/source/others/exception_in_property.py", line 14, in value +> File "tests/exceptions/source/others/exception_in_property.py", line 13, in value 1 / 0 ZeroDivisionError: division by zero diff --git a/tests/exceptions/output/others/nested_with_reraise.txt b/tests/exceptions/output/others/nested_with_reraise.txt index bb973e85..60d3544a 100644 --- a/tests/exceptions/output/others/nested_with_reraise.txt +++ b/tests/exceptions/output/others/nested_with_reraise.txt @@ -1,20 +1,20 @@ Traceback (most recent call last): - File "tests/exceptions/source/others/nested_with_reraise.py", line 21, in bar + File "tests/exceptions/source/others/nested_with_reraise.py", line 20, in bar f = foo(x, y) - File "tests/exceptions/source/others/nested_with_reraise.py", line 15, in foo + File "tests/exceptions/source/others/nested_with_reraise.py", line 14, in foo a / b ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/others/nested_with_reraise.py", line 21, in bar + File "tests/exceptions/source/others/nested_with_reraise.py", line 20, in bar f = foo(x, y) │ │ └ 0 │ └ 1 └ - File "tests/exceptions/source/others/nested_with_reraise.py", line 15, in foo + File "tests/exceptions/source/others/nested_with_reraise.py", line 14, in foo a / b │ └ 0 └ 1 @@ -22,33 +22,33 @@ Traceback (most recent call last): ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/others/nested_with_reraise.py", line 31, in + File "tests/exceptions/source/others/nested_with_reraise.py", line 30, in baz() - File "tests/exceptions/source/others/nested_with_reraise.py", line 27, in baz + File "tests/exceptions/source/others/nested_with_reraise.py", line 26, in baz bar(1, 0) -> File "tests/exceptions/source/others/nested_with_reraise.py", line 21, in bar +> File "tests/exceptions/source/others/nested_with_reraise.py", line 20, in bar f = foo(x, y) - File "tests/exceptions/source/others/nested_with_reraise.py", line 15, in foo + File "tests/exceptions/source/others/nested_with_reraise.py", line 14, in foo a / b ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/others/nested_with_reraise.py", line 31, in + File "tests/exceptions/source/others/nested_with_reraise.py", line 30, in baz() └ - File "tests/exceptions/source/others/nested_with_reraise.py", line 27, in baz + File "tests/exceptions/source/others/nested_with_reraise.py", line 26, in baz bar(1, 0) └ -> File "tests/exceptions/source/others/nested_with_reraise.py", line 21, in bar +> File "tests/exceptions/source/others/nested_with_reraise.py", line 20, in bar f = foo(x, y) │ │ └ 0 │ └ 1 └ - File "tests/exceptions/source/others/nested_with_reraise.py", line 15, in foo + File "tests/exceptions/source/others/nested_with_reraise.py", line 14, in foo a / b │ └ 0 └ 1 @@ -56,30 +56,30 @@ Traceback (most recent call last): ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/others/nested_with_reraise.py", line 21, in bar + File "tests/exceptions/source/others/nested_with_reraise.py", line 20, in bar f = foo(x, y) - File "tests/exceptions/source/others/nested_with_reraise.py", line 15, in foo + File "tests/exceptions/source/others/nested_with_reraise.py", line 14, in foo a / b ZeroDivisionError: division by zero The above exception was the direct cause of the following exception: Traceback (most recent call last): - File "tests/exceptions/source/others/nested_with_reraise.py", line 27, in baz + File "tests/exceptions/source/others/nested_with_reraise.py", line 26, in baz bar(1, 0) - File "tests/exceptions/source/others/nested_with_reraise.py", line 23, in bar + File "tests/exceptions/source/others/nested_with_reraise.py", line 22, in bar raise ValueError from e ValueError Traceback (most recent call last): - File "tests/exceptions/source/others/nested_with_reraise.py", line 21, in bar + File "tests/exceptions/source/others/nested_with_reraise.py", line 20, in bar f = foo(x, y) │ │ └ 0 │ └ 1 └ - File "tests/exceptions/source/others/nested_with_reraise.py", line 15, in foo + File "tests/exceptions/source/others/nested_with_reraise.py", line 14, in foo a / b │ └ 0 └ 1 @@ -92,42 +92,42 @@ The above exception was the direct cause of the following exception: Traceback (most recent call last): - File "tests/exceptions/source/others/nested_with_reraise.py", line 27, in baz + File "tests/exceptions/source/others/nested_with_reraise.py", line 26, in baz bar(1, 0) └ - File "tests/exceptions/source/others/nested_with_reraise.py", line 23, in bar + File "tests/exceptions/source/others/nested_with_reraise.py", line 22, in bar raise ValueError from e ValueError Traceback (most recent call last): - File "tests/exceptions/source/others/nested_with_reraise.py", line 21, in bar + File "tests/exceptions/source/others/nested_with_reraise.py", line 20, in bar f = foo(x, y) - File "tests/exceptions/source/others/nested_with_reraise.py", line 15, in foo + File "tests/exceptions/source/others/nested_with_reraise.py", line 14, in foo a / b ZeroDivisionError: division by zero The above exception was the direct cause of the following exception: Traceback (most recent call last): - File "tests/exceptions/source/others/nested_with_reraise.py", line 31, in + File "tests/exceptions/source/others/nested_with_reraise.py", line 30, in baz() -> File "tests/exceptions/source/others/nested_with_reraise.py", line 27, in baz +> File "tests/exceptions/source/others/nested_with_reraise.py", line 26, in baz bar(1, 0) - File "tests/exceptions/source/others/nested_with_reraise.py", line 23, in bar + File "tests/exceptions/source/others/nested_with_reraise.py", line 22, in bar raise ValueError from e ValueError Traceback (most recent call last): - File "tests/exceptions/source/others/nested_with_reraise.py", line 21, in bar + File "tests/exceptions/source/others/nested_with_reraise.py", line 20, in bar f = foo(x, y) │ │ └ 0 │ └ 1 └ - File "tests/exceptions/source/others/nested_with_reraise.py", line 15, in foo + File "tests/exceptions/source/others/nested_with_reraise.py", line 14, in foo a / b │ └ 0 └ 1 @@ -140,15 +140,15 @@ The above exception was the direct cause of the following exception: Traceback (most recent call last): - File "tests/exceptions/source/others/nested_with_reraise.py", line 31, in + File "tests/exceptions/source/others/nested_with_reraise.py", line 30, in baz() └ -> File "tests/exceptions/source/others/nested_with_reraise.py", line 27, in baz +> File "tests/exceptions/source/others/nested_with_reraise.py", line 26, in baz bar(1, 0) └ - File "tests/exceptions/source/others/nested_with_reraise.py", line 23, in bar + File "tests/exceptions/source/others/nested_with_reraise.py", line 22, in bar raise ValueError from e ValueError diff --git a/tests/exceptions/output/ownership/assertion_from_lib.txt b/tests/exceptions/output/ownership/assertion_from_lib.txt index 69fcbf41..b8fec048 100644 --- a/tests/exceptions/output/ownership/assertion_from_lib.txt +++ b/tests/exceptions/output/ownership/assertion_from_lib.txt @@ -1,11 +1,11 @@ Traceback (most recent call last): - File "tests/exceptions/source/ownership/assertion_from_lib.py", line 21, in  + File "tests/exceptions/source/ownership/assertion_from_lib.py", line 20, in  test(backtrace=True, colorize=True, diagnose=True) └  -> File "tests/exceptions/source/ownership/assertion_from_lib.py", line 16, in test +> File "tests/exceptions/source/ownership/assertion_from_lib.py", line 15, in test assertionerror(a, b) │ │ └ 2 │ └ 1 @@ -20,7 +20,7 @@ Traceback (most recent call last): - File "tests/exceptions/source/ownership/assertion_from_lib.py", line 16, in test + File "tests/exceptions/source/ownership/assertion_from_lib.py", line 15, in test assertionerror(a, b) │ │ └ 2 │ └ 1 @@ -34,23 +34,23 @@ AssertionError: assert x == y Traceback (most recent call last): - File "tests/exceptions/source/ownership/assertion_from_lib.py", line 23, in  + File "tests/exceptions/source/ownership/assertion_from_lib.py", line 22, in  test(backtrace=True, colorize=True, diagnose=False) -> File "tests/exceptions/source/ownership/assertion_from_lib.py", line 16, in test +> File "tests/exceptions/source/ownership/assertion_from_lib.py", line 15, in test assertionerror(a, b) File "/usr/lib/python/somelib/__init__.py", line 22, in assertionerror assert x == y AssertionError Traceback (most recent call last): - File "tests/exceptions/source/ownership/assertion_from_lib.py", line 16, in test + File "tests/exceptions/source/ownership/assertion_from_lib.py", line 15, in test assertionerror(a, b) File "/usr/lib/python/somelib/__init__.py", line 22, in assertionerror assert x == y AssertionError Traceback (most recent call last): - File "tests/exceptions/source/ownership/assertion_from_lib.py", line 16, in test + File "tests/exceptions/source/ownership/assertion_from_lib.py", line 15, in test assertionerror(a, b) File "/usr/lib/python/somelib/__init__.py", line 22, in assertionerror assert x == y diff --git a/tests/exceptions/output/ownership/assertion_from_local.txt b/tests/exceptions/output/ownership/assertion_from_local.txt index af749c66..a8e6bcc7 100644 --- a/tests/exceptions/output/ownership/assertion_from_local.txt +++ b/tests/exceptions/output/ownership/assertion_from_local.txt @@ -1,11 +1,11 @@ Traceback (most recent call last): - File "tests/exceptions/source/ownership/assertion_from_local.py", line 21, in  + File "tests/exceptions/source/ownership/assertion_from_local.py", line 20, in  test(backtrace=True, colorize=True, diagnose=True) └  -> File "tests/exceptions/source/ownership/assertion_from_local.py", line 16, in test +> File "tests/exceptions/source/ownership/assertion_from_local.py", line 15, in test assert a == b  │ └ 2  └ 1 @@ -14,7 +14,7 @@ Traceback (most recent call last): - File "tests/exceptions/source/ownership/assertion_from_local.py", line 16, in test + File "tests/exceptions/source/ownership/assertion_from_local.py", line 15, in test assert a == b  │ └ 2  └ 1 @@ -22,18 +22,18 @@ AssertionError: assert a == b Traceback (most recent call last): - File "tests/exceptions/source/ownership/assertion_from_local.py", line 23, in  + File "tests/exceptions/source/ownership/assertion_from_local.py", line 22, in  test(backtrace=True, colorize=True, diagnose=False) -> File "tests/exceptions/source/ownership/assertion_from_local.py", line 16, in test +> File "tests/exceptions/source/ownership/assertion_from_local.py", line 15, in test assert a == b AssertionError Traceback (most recent call last): - File "tests/exceptions/source/ownership/assertion_from_local.py", line 16, in test + File "tests/exceptions/source/ownership/assertion_from_local.py", line 15, in test assert a == b AssertionError Traceback (most recent call last): - File "tests/exceptions/source/ownership/assertion_from_local.py", line 16, in test + File "tests/exceptions/source/ownership/assertion_from_local.py", line 15, in test assert a == b AssertionError diff --git a/tests/exceptions/output/ownership/callback.txt b/tests/exceptions/output/ownership/callback.txt index 3e2653b5..9ba7580d 100644 --- a/tests/exceptions/output/ownership/callback.txt +++ b/tests/exceptions/output/ownership/callback.txt @@ -1,11 +1,11 @@ Traceback (most recent call last): - File "tests/exceptions/source/ownership/callback.py", line 23, in  + File "tests/exceptions/source/ownership/callback.py", line 22, in  test(backtrace=True, colorize=True, diagnose=True) └  -> File "tests/exceptions/source/ownership/callback.py", line 18, in test +> File "tests/exceptions/source/ownership/callback.py", line 17, in test callme(callback) │ └ .callback at 0xDEADBEEF> └  @@ -14,7 +14,7 @@ callback() └ .callback at 0xDEADBEEF> - File "tests/exceptions/source/ownership/callback.py", line 15, in callback + File "tests/exceptions/source/ownership/callback.py", line 14, in callback divide(1, 0) └  @@ -27,7 +27,7 @@ Traceback (most recent call last): - File "tests/exceptions/source/ownership/callback.py", line 18, in test + File "tests/exceptions/source/ownership/callback.py", line 17, in test callme(callback) │ └ .callback at 0xDEADBEEF> └  @@ -36,7 +36,7 @@ callback() └ .callback at 0xDEADBEEF> - File "tests/exceptions/source/ownership/callback.py", line 15, in callback + File "tests/exceptions/source/ownership/callback.py", line 14, in callback divide(1, 0) └  @@ -48,35 +48,35 @@ ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/ownership/callback.py", line 25, in  + File "tests/exceptions/source/ownership/callback.py", line 24, in  test(backtrace=True, colorize=True, diagnose=False) -> File "tests/exceptions/source/ownership/callback.py", line 18, in test +> File "tests/exceptions/source/ownership/callback.py", line 17, in test callme(callback) File "/usr/lib/python/somelib/__init__.py", line 10, in callme callback() - File "tests/exceptions/source/ownership/callback.py", line 15, in callback + File "tests/exceptions/source/ownership/callback.py", line 14, in callback divide(1, 0) File "/usr/lib/python/somelib/__init__.py", line 2, in divide x / y ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/ownership/callback.py", line 18, in test + File "tests/exceptions/source/ownership/callback.py", line 17, in test callme(callback) File "/usr/lib/python/somelib/__init__.py", line 10, in callme callback() - File "tests/exceptions/source/ownership/callback.py", line 15, in callback + File "tests/exceptions/source/ownership/callback.py", line 14, in callback divide(1, 0) File "/usr/lib/python/somelib/__init__.py", line 2, in divide x / y ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/ownership/callback.py", line 18, in test + File "tests/exceptions/source/ownership/callback.py", line 17, in test callme(callback) File "/usr/lib/python/somelib/__init__.py", line 10, in callme callback() - File "tests/exceptions/source/ownership/callback.py", line 15, in callback + File "tests/exceptions/source/ownership/callback.py", line 14, in callback divide(1, 0) File "/usr/lib/python/somelib/__init__.py", line 2, in divide x / y diff --git a/tests/exceptions/output/ownership/catch_decorator.txt b/tests/exceptions/output/ownership/catch_decorator.txt index 729595f6..abf3fc86 100644 --- a/tests/exceptions/output/ownership/catch_decorator.txt +++ b/tests/exceptions/output/ownership/catch_decorator.txt @@ -1,15 +1,15 @@ Traceback (most recent call last): - File "tests/exceptions/source/ownership/catch_decorator.py", line 21, in  + File "tests/exceptions/source/ownership/catch_decorator.py", line 20, in  test(backtrace=True, colorize=True, diagnose=True) └  -> File "tests/exceptions/source/ownership/catch_decorator.py", line 18, in test +> File "tests/exceptions/source/ownership/catch_decorator.py", line 17, in test foo() └ .foo at 0xDEADBEEF> - File "tests/exceptions/source/ownership/catch_decorator.py", line 16, in foo + File "tests/exceptions/source/ownership/catch_decorator.py", line 15, in foo divide(1, 0) └  @@ -22,11 +22,11 @@ Traceback (most recent call last): - File "tests/exceptions/source/ownership/catch_decorator.py", line 18, in test + File "tests/exceptions/source/ownership/catch_decorator.py", line 17, in test foo() └ .foo at 0xDEADBEEF> - File "tests/exceptions/source/ownership/catch_decorator.py", line 16, in foo + File "tests/exceptions/source/ownership/catch_decorator.py", line 15, in foo divide(1, 0) └  @@ -38,29 +38,29 @@ ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/ownership/catch_decorator.py", line 23, in  + File "tests/exceptions/source/ownership/catch_decorator.py", line 22, in  test(backtrace=True, colorize=True, diagnose=False) -> File "tests/exceptions/source/ownership/catch_decorator.py", line 18, in test +> File "tests/exceptions/source/ownership/catch_decorator.py", line 17, in test foo() - File "tests/exceptions/source/ownership/catch_decorator.py", line 16, in foo + File "tests/exceptions/source/ownership/catch_decorator.py", line 15, in foo divide(1, 0) File "/usr/lib/python/somelib/__init__.py", line 2, in divide x / y ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/ownership/catch_decorator.py", line 18, in test + File "tests/exceptions/source/ownership/catch_decorator.py", line 17, in test foo() - File "tests/exceptions/source/ownership/catch_decorator.py", line 16, in foo + File "tests/exceptions/source/ownership/catch_decorator.py", line 15, in foo divide(1, 0) File "/usr/lib/python/somelib/__init__.py", line 2, in divide x / y ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/ownership/catch_decorator.py", line 18, in test + File "tests/exceptions/source/ownership/catch_decorator.py", line 17, in test foo() - File "tests/exceptions/source/ownership/catch_decorator.py", line 16, in foo + File "tests/exceptions/source/ownership/catch_decorator.py", line 15, in foo divide(1, 0) File "/usr/lib/python/somelib/__init__.py", line 2, in divide x / y diff --git a/tests/exceptions/output/ownership/catch_decorator_from_lib.txt b/tests/exceptions/output/ownership/catch_decorator_from_lib.txt index 164299d1..cb13a7f4 100644 --- a/tests/exceptions/output/ownership/catch_decorator_from_lib.txt +++ b/tests/exceptions/output/ownership/catch_decorator_from_lib.txt @@ -1,11 +1,11 @@ Traceback (most recent call last): - File "tests/exceptions/source/ownership/catch_decorator_from_lib.py", line 21, in  + File "tests/exceptions/source/ownership/catch_decorator_from_lib.py", line 20, in  test(backtrace=True, colorize=True, diagnose=True) └  - File "tests/exceptions/source/ownership/catch_decorator_from_lib.py", line 18, in test + File "tests/exceptions/source/ownership/catch_decorator_from_lib.py", line 17, in test callme(callback) │ └ .callback at 0xDEADBEEF> └  @@ -14,7 +14,7 @@ callback() └ .callback at 0xDEADBEEF> - File "tests/exceptions/source/ownership/catch_decorator_from_lib.py", line 16, in callback + File "tests/exceptions/source/ownership/catch_decorator_from_lib.py", line 15, in callback divide(1, 0) └  @@ -31,7 +31,7 @@ callback() └ .callback at 0xDEADBEEF> - File "tests/exceptions/source/ownership/catch_decorator_from_lib.py", line 16, in callback + File "tests/exceptions/source/ownership/catch_decorator_from_lib.py", line 15, in callback divide(1, 0) └  @@ -43,13 +43,13 @@ ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/ownership/catch_decorator_from_lib.py", line 23, in  + File "tests/exceptions/source/ownership/catch_decorator_from_lib.py", line 22, in  test(backtrace=True, colorize=True, diagnose=False) - File "tests/exceptions/source/ownership/catch_decorator_from_lib.py", line 18, in test + File "tests/exceptions/source/ownership/catch_decorator_from_lib.py", line 17, in test callme(callback) > File "/usr/lib/python/somelib/__init__.py", line 10, in callme callback() - File "tests/exceptions/source/ownership/catch_decorator_from_lib.py", line 16, in callback + File "tests/exceptions/source/ownership/catch_decorator_from_lib.py", line 15, in callback divide(1, 0) File "/usr/lib/python/somelib/__init__.py", line 2, in divide x / y @@ -58,7 +58,7 @@ Traceback (most recent call last): File "/usr/lib/python/somelib/__init__.py", line 10, in callme callback() - File "tests/exceptions/source/ownership/catch_decorator_from_lib.py", line 16, in callback + File "tests/exceptions/source/ownership/catch_decorator_from_lib.py", line 15, in callback divide(1, 0) File "/usr/lib/python/somelib/__init__.py", line 2, in divide x / y @@ -67,7 +67,7 @@ Traceback (most recent call last): File "/usr/lib/python/somelib/__init__.py", line 10, in callme callback() - File "tests/exceptions/source/ownership/catch_decorator_from_lib.py", line 16, in callback + File "tests/exceptions/source/ownership/catch_decorator_from_lib.py", line 15, in callback divide(1, 0) File "/usr/lib/python/somelib/__init__.py", line 2, in divide x / y diff --git a/tests/exceptions/output/ownership/decorated_callback.txt b/tests/exceptions/output/ownership/decorated_callback.txt index a293f8d1..f5896938 100644 --- a/tests/exceptions/output/ownership/decorated_callback.txt +++ b/tests/exceptions/output/ownership/decorated_callback.txt @@ -1,11 +1,11 @@ Traceback (most recent call last): - File "tests/exceptions/source/ownership/decorated_callback.py", line 22, in  + File "tests/exceptions/source/ownership/decorated_callback.py", line 21, in  test(backtrace=True, colorize=True, diagnose=True) └  - File "tests/exceptions/source/ownership/decorated_callback.py", line 19, in test + File "tests/exceptions/source/ownership/decorated_callback.py", line 18, in test callme(callback) │ └ .callback at 0xDEADBEEF> └  @@ -14,7 +14,7 @@ callback() └ .callback at 0xDEADBEEF> - File "tests/exceptions/source/ownership/decorated_callback.py", line 17, in callback + File "tests/exceptions/source/ownership/decorated_callback.py", line 16, in callback a / b │ └ 0 └ 1 @@ -27,7 +27,7 @@ callback() └ .callback at 0xDEADBEEF> - File "tests/exceptions/source/ownership/decorated_callback.py", line 17, in callback + File "tests/exceptions/source/ownership/decorated_callback.py", line 16, in callback a / b │ └ 0 └ 1 @@ -35,26 +35,26 @@ ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/ownership/decorated_callback.py", line 24, in  + File "tests/exceptions/source/ownership/decorated_callback.py", line 23, in  test(backtrace=True, colorize=True, diagnose=False) - File "tests/exceptions/source/ownership/decorated_callback.py", line 19, in test + File "tests/exceptions/source/ownership/decorated_callback.py", line 18, in test callme(callback) > File "/usr/lib/python/somelib/__init__.py", line 10, in callme callback() - File "tests/exceptions/source/ownership/decorated_callback.py", line 17, in callback + File "tests/exceptions/source/ownership/decorated_callback.py", line 16, in callback a / b ZeroDivisionError: division by zero Traceback (most recent call last): File "/usr/lib/python/somelib/__init__.py", line 10, in callme callback() - File "tests/exceptions/source/ownership/decorated_callback.py", line 17, in callback + File "tests/exceptions/source/ownership/decorated_callback.py", line 16, in callback a / b ZeroDivisionError: division by zero Traceback (most recent call last): File "/usr/lib/python/somelib/__init__.py", line 10, in callme callback() - File "tests/exceptions/source/ownership/decorated_callback.py", line 17, in callback + File "tests/exceptions/source/ownership/decorated_callback.py", line 16, in callback a / b ZeroDivisionError: division by zero diff --git a/tests/exceptions/output/ownership/direct.txt b/tests/exceptions/output/ownership/direct.txt index 21b0bcb7..1a2e118c 100644 --- a/tests/exceptions/output/ownership/direct.txt +++ b/tests/exceptions/output/ownership/direct.txt @@ -1,11 +1,11 @@ Traceback (most recent call last): - File "tests/exceptions/source/ownership/direct.py", line 20, in  + File "tests/exceptions/source/ownership/direct.py", line 19, in  test(backtrace=True, colorize=True, diagnose=True) └  -> File "tests/exceptions/source/ownership/direct.py", line 15, in test +> File "tests/exceptions/source/ownership/direct.py", line 14, in test divide(10, 0) └  @@ -18,7 +18,7 @@ Traceback (most recent call last): - File "tests/exceptions/source/ownership/direct.py", line 15, in test + File "tests/exceptions/source/ownership/direct.py", line 14, in test divide(10, 0) └  @@ -30,23 +30,23 @@ ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/ownership/direct.py", line 22, in  + File "tests/exceptions/source/ownership/direct.py", line 21, in  test(backtrace=True, colorize=True, diagnose=False) -> File "tests/exceptions/source/ownership/direct.py", line 15, in test +> File "tests/exceptions/source/ownership/direct.py", line 14, in test divide(10, 0) File "/usr/lib/python/somelib/__init__.py", line 2, in divide x / y ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/ownership/direct.py", line 15, in test + File "tests/exceptions/source/ownership/direct.py", line 14, in test divide(10, 0) File "/usr/lib/python/somelib/__init__.py", line 2, in divide x / y ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/ownership/direct.py", line 15, in test + File "tests/exceptions/source/ownership/direct.py", line 14, in test divide(10, 0) File "/usr/lib/python/somelib/__init__.py", line 2, in divide x / y diff --git a/tests/exceptions/output/ownership/indirect.txt b/tests/exceptions/output/ownership/indirect.txt index 19f9dbc7..c3b7d4b7 100644 --- a/tests/exceptions/output/ownership/indirect.txt +++ b/tests/exceptions/output/ownership/indirect.txt @@ -1,11 +1,11 @@ Traceback (most recent call last): - File "tests/exceptions/source/ownership/indirect.py", line 20, in  + File "tests/exceptions/source/ownership/indirect.py", line 19, in  test(backtrace=True, colorize=True, diagnose=True) └  -> File "tests/exceptions/source/ownership/indirect.py", line 15, in test +> File "tests/exceptions/source/ownership/indirect.py", line 14, in test divide_indirect(10, 0) └  @@ -23,7 +23,7 @@ Traceback (most recent call last): - File "tests/exceptions/source/ownership/indirect.py", line 15, in test + File "tests/exceptions/source/ownership/indirect.py", line 14, in test divide_indirect(10, 0) └  @@ -40,9 +40,9 @@ ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/ownership/indirect.py", line 22, in  + File "tests/exceptions/source/ownership/indirect.py", line 21, in  test(backtrace=True, colorize=True, diagnose=False) -> File "tests/exceptions/source/ownership/indirect.py", line 15, in test +> File "tests/exceptions/source/ownership/indirect.py", line 14, in test divide_indirect(10, 0) File "/usr/lib/python/somelib/__init__.py", line 6, in divide_indirect divide(a, b) @@ -51,7 +51,7 @@ ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/ownership/indirect.py", line 15, in test + File "tests/exceptions/source/ownership/indirect.py", line 14, in test divide_indirect(10, 0) File "/usr/lib/python/somelib/__init__.py", line 6, in divide_indirect divide(a, b) @@ -60,7 +60,7 @@ ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/ownership/indirect.py", line 15, in test + File "tests/exceptions/source/ownership/indirect.py", line 14, in test divide_indirect(10, 0) File "/usr/lib/python/somelib/__init__.py", line 6, in divide_indirect divide(a, b) diff --git a/tests/exceptions/output/ownership/string_lib.txt b/tests/exceptions/output/ownership/string_lib.txt index 3b53507d..396cac69 100644 --- a/tests/exceptions/output/ownership/string_lib.txt +++ b/tests/exceptions/output/ownership/string_lib.txt @@ -1,11 +1,11 @@ Traceback (most recent call last): - File "tests/exceptions/source/ownership/string_lib.py", line 20, in  + File "tests/exceptions/source/ownership/string_lib.py", line 19, in  test(backtrace=True, colorize=True, diagnose=True) └  -> File "tests/exceptions/source/ownership/string_lib.py", line 15, in test +> File "tests/exceptions/source/ownership/string_lib.py", line 14, in test execute() └  @@ -21,7 +21,7 @@ Traceback (most recent call last): - File "tests/exceptions/source/ownership/string_lib.py", line 15, in test + File "tests/exceptions/source/ownership/string_lib.py", line 14, in test execute() └  @@ -36,9 +36,9 @@ ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/ownership/string_lib.py", line 22, in  + File "tests/exceptions/source/ownership/string_lib.py", line 21, in  test(backtrace=True, colorize=True, diagnose=False) -> File "tests/exceptions/source/ownership/string_lib.py", line 15, in test +> File "tests/exceptions/source/ownership/string_lib.py", line 14, in test execute() File "/usr/lib/python/somelib/__init__.py", line 14, in execute exec("divide(1, 0)") @@ -48,7 +48,7 @@ ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/ownership/string_lib.py", line 15, in test + File "tests/exceptions/source/ownership/string_lib.py", line 14, in test execute() File "/usr/lib/python/somelib/__init__.py", line 14, in execute exec("divide(1, 0)") @@ -58,7 +58,7 @@ ZeroDivisionError: division by zero Traceback (most recent call last): - File "tests/exceptions/source/ownership/string_lib.py", line 15, in test + File "tests/exceptions/source/ownership/string_lib.py", line 14, in test execute() File "/usr/lib/python/somelib/__init__.py", line 14, in execute exec("divide(1, 0)") diff --git a/tests/exceptions/output/ownership/syntaxerror.txt b/tests/exceptions/output/ownership/syntaxerror.txt index d1b03243..5d72ae38 100644 --- a/tests/exceptions/output/ownership/syntaxerror.txt +++ b/tests/exceptions/output/ownership/syntaxerror.txt @@ -1,11 +1,11 @@ Traceback (most recent call last): - File "tests/exceptions/source/ownership/syntaxerror.py", line 20, in  + File "tests/exceptions/source/ownership/syntaxerror.py", line 19, in  test(backtrace=True, colorize=True, diagnose=True) └  -> File "tests/exceptions/source/ownership/syntaxerror.py", line 15, in test +> File "tests/exceptions/source/ownership/syntaxerror.py", line 14, in test syntaxerror() └  @@ -19,7 +19,7 @@ Traceback (most recent call last): - File "tests/exceptions/source/ownership/syntaxerror.py", line 15, in test + File "tests/exceptions/source/ownership/syntaxerror.py", line 14, in test syntaxerror() └  @@ -32,9 +32,9 @@ SyntaxError: invalid syntax Traceback (most recent call last): - File "tests/exceptions/source/ownership/syntaxerror.py", line 22, in  + File "tests/exceptions/source/ownership/syntaxerror.py", line 21, in  test(backtrace=True, colorize=True, diagnose=False) -> File "tests/exceptions/source/ownership/syntaxerror.py", line 15, in test +> File "tests/exceptions/source/ownership/syntaxerror.py", line 14, in test syntaxerror() File "/usr/lib/python/somelib/__init__.py", line 18, in syntaxerror exec("foo =") @@ -44,7 +44,7 @@ SyntaxError: invalid syntax Traceback (most recent call last): - File "tests/exceptions/source/ownership/syntaxerror.py", line 15, in test + File "tests/exceptions/source/ownership/syntaxerror.py", line 14, in test syntaxerror() File "/usr/lib/python/somelib/__init__.py", line 18, in syntaxerror exec("foo =") @@ -54,7 +54,7 @@ SyntaxError: invalid syntax Traceback (most recent call last): - File "tests/exceptions/source/ownership/syntaxerror.py", line 15, in test + File "tests/exceptions/source/ownership/syntaxerror.py", line 14, in test syntaxerror() File "/usr/lib/python/somelib/__init__.py", line 18, in syntaxerror exec("foo =") diff --git a/tests/exceptions/source/diagnose/attributes.py b/tests/exceptions/source/diagnose/attributes.py index d8460c5f..c904b148 100644 --- a/tests/exceptions/source/diagnose/attributes.py +++ b/tests/exceptions/source/diagnose/attributes.py @@ -1,5 +1,4 @@ # fmt: off -# flake8: noqa import sys from loguru import logger diff --git a/tests/exceptions/source/diagnose/parenthesis.py b/tests/exceptions/source/diagnose/parenthesis.py index 65fbb42c..ed031b5c 100644 --- a/tests/exceptions/source/diagnose/parenthesis.py +++ b/tests/exceptions/source/diagnose/parenthesis.py @@ -1,5 +1,4 @@ # fmt: off -# flake8: noqa import sys from loguru import logger diff --git a/tests/exceptions/source/diagnose/source_multilines.py b/tests/exceptions/source/diagnose/source_multilines.py index ff806262..2d11a06b 100644 --- a/tests/exceptions/source/diagnose/source_multilines.py +++ b/tests/exceptions/source/diagnose/source_multilines.py @@ -1,5 +1,4 @@ # fmt: off -# flake8: noqa import sys from loguru import logger diff --git a/tests/exceptions/source/diagnose/syntax_highlighting.py b/tests/exceptions/source/diagnose/syntax_highlighting.py index ca30f539..40ce2c91 100644 --- a/tests/exceptions/source/diagnose/syntax_highlighting.py +++ b/tests/exceptions/source/diagnose/syntax_highlighting.py @@ -1,5 +1,4 @@ # fmt: off -# flake8: noqa import sys from loguru import logger diff --git a/tests/exceptions/source/others/assertionerror_without_traceback.py b/tests/exceptions/source/others/assertionerror_without_traceback.py index c6b0ce59..be762941 100644 --- a/tests/exceptions/source/others/assertionerror_without_traceback.py +++ b/tests/exceptions/source/others/assertionerror_without_traceback.py @@ -1,4 +1,3 @@ -# flake8: noqa import sys from loguru import logger diff --git a/tests/exceptions/source/others/exception_in_property.py b/tests/exceptions/source/others/exception_in_property.py index 66276fa9..4c8aaf14 100644 --- a/tests/exceptions/source/others/exception_in_property.py +++ b/tests/exceptions/source/others/exception_in_property.py @@ -1,4 +1,3 @@ -# flake8: noqa import sys from loguru import logger diff --git a/tests/exceptions/source/others/nested_with_reraise.py b/tests/exceptions/source/others/nested_with_reraise.py index 4ea6987b..f7afca59 100644 --- a/tests/exceptions/source/others/nested_with_reraise.py +++ b/tests/exceptions/source/others/nested_with_reraise.py @@ -1,4 +1,3 @@ -# flake8: noqa import sys from loguru import logger diff --git a/tests/exceptions/source/ownership/assertion_from_lib.py b/tests/exceptions/source/ownership/assertion_from_lib.py index 81c4e2d0..5031fd0e 100644 --- a/tests/exceptions/source/ownership/assertion_from_lib.py +++ b/tests/exceptions/source/ownership/assertion_from_lib.py @@ -1,4 +1,3 @@ -# flake8: noqa import sys import _init diff --git a/tests/exceptions/source/ownership/assertion_from_local.py b/tests/exceptions/source/ownership/assertion_from_local.py index 6d3592a9..aabe6f1e 100644 --- a/tests/exceptions/source/ownership/assertion_from_local.py +++ b/tests/exceptions/source/ownership/assertion_from_local.py @@ -1,4 +1,3 @@ -# flake8: noqa import sys import _init diff --git a/tests/exceptions/source/ownership/callback.py b/tests/exceptions/source/ownership/callback.py index 4534f6b2..896b9222 100644 --- a/tests/exceptions/source/ownership/callback.py +++ b/tests/exceptions/source/ownership/callback.py @@ -1,4 +1,3 @@ -# flake8: noqa import sys import _init diff --git a/tests/exceptions/source/ownership/catch_decorator.py b/tests/exceptions/source/ownership/catch_decorator.py index 3169dc6b..263b4d8b 100644 --- a/tests/exceptions/source/ownership/catch_decorator.py +++ b/tests/exceptions/source/ownership/catch_decorator.py @@ -1,4 +1,3 @@ -# flake8: noqa import sys import _init diff --git a/tests/exceptions/source/ownership/catch_decorator_from_lib.py b/tests/exceptions/source/ownership/catch_decorator_from_lib.py index 827e515b..f1e56335 100644 --- a/tests/exceptions/source/ownership/catch_decorator_from_lib.py +++ b/tests/exceptions/source/ownership/catch_decorator_from_lib.py @@ -1,4 +1,3 @@ -# flake8: noqa import sys import _init diff --git a/tests/exceptions/source/ownership/decorated_callback.py b/tests/exceptions/source/ownership/decorated_callback.py index 38b9a316..77767853 100644 --- a/tests/exceptions/source/ownership/decorated_callback.py +++ b/tests/exceptions/source/ownership/decorated_callback.py @@ -1,4 +1,3 @@ -# flake8: noqa import sys import _init diff --git a/tests/exceptions/source/ownership/direct.py b/tests/exceptions/source/ownership/direct.py index 8f64ea73..6832d0a4 100644 --- a/tests/exceptions/source/ownership/direct.py +++ b/tests/exceptions/source/ownership/direct.py @@ -1,4 +1,3 @@ -# flake8: noqa import sys import _init diff --git a/tests/exceptions/source/ownership/indirect.py b/tests/exceptions/source/ownership/indirect.py index 8d828a4c..5cc8f06c 100644 --- a/tests/exceptions/source/ownership/indirect.py +++ b/tests/exceptions/source/ownership/indirect.py @@ -1,4 +1,3 @@ -# flake8: noqa import sys import _init diff --git a/tests/exceptions/source/ownership/string_lib.py b/tests/exceptions/source/ownership/string_lib.py index 4611a923..4b6f8cae 100644 --- a/tests/exceptions/source/ownership/string_lib.py +++ b/tests/exceptions/source/ownership/string_lib.py @@ -1,4 +1,3 @@ -# flake8: noqa import sys import _init diff --git a/tests/exceptions/source/ownership/syntaxerror.py b/tests/exceptions/source/ownership/syntaxerror.py index 17706481..58ac2ee8 100644 --- a/tests/exceptions/source/ownership/syntaxerror.py +++ b/tests/exceptions/source/ownership/syntaxerror.py @@ -1,4 +1,3 @@ -# flake8: noqa import sys import _init