511 matches across 7 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_colorama.py | 44 | def test_stream_wrapped_on_windows_if_no_vt_support(patched, monkeypatch, patch_colorama): |
| LOW | tests/test_colorama.py | 56 | def test_stream_not_wrapped_on_windows_if_vt_support(patched, monkeypatch, patch_colorama): |
| LOW | tests/test_colorama.py | 110 | def test_github_actions_fixed(monkeypatch, patched, expected): |
| LOW | tests/test_colorama.py | 130 | def test_mintty_fixed_windows(monkeypatch, patched, expected): |
| LOW | tests/test_colorama.py | 148 | def test_dumb_term_not_colored(monkeypatch, patched, expected): |
| LOW | tests/test_colorama.py | 173 | def test_honor_no_color_standard(monkeypatch, patched, no_color, expected): |
| LOW | tests/test_colorama.py | 198 | def test_honor_force_color_standard(monkeypatch, patched, force_color, expected): |
| LOW | tests/test_colorama.py | 206 | def test_no_color_takes_precedence_over_force_color(monkeypatch): |
| LOW | tests/test_colorama.py | 232 | def test_mintty_not_fixed_linux(monkeypatch, patched, expected): |
| LOW | tests/test_colorama.py | 295 | def test_dont_wrap_if_not_original_stdout_or_stderr(monkeypatch, patched, patch_colorama): |
| LOW | tests/test_colorama.py | 305 | def test_dont_wrap_if_terminal_has_vt_support(monkeypatch, patched, patch_colorama): |
| LOW | tests/test_colorama.py | 317 | def test_dont_wrap_if_winapi_false(monkeypatch, patched, patch_colorama): |
| LOW | tests/test_colorama.py | 329 | def test_wrap_if_winapi_true_and_no_vt_support(monkeypatch, patched, patch_colorama): |
| LOW | tests/test_colorama.py | 342 | def test_wrap_if_winapi_true_and_vt_check_fails(monkeypatch, patched, patch_colorama): |
| LOW | tests/test_colorama.py | 355 | def test_wrap_if_winapi_true_and_stream_has_no_fileno(monkeypatch, patched, patch_colorama): |
| LOW | tests/test_colorama.py | 367 | def test_wrap_if_winapi_true_and_old_colorama_version(monkeypatch, patched, patch_colorama): |
| LOW | tests/test_filesink_rotation.py | 1122 | def test_invalid_day_rotation(rotation): |
| LOW | tests/test_filesink_rotation.py | 1130 | def test_invalid_time_rotation(rotation): |
| LOW | tests/test_filesink_rotation.py | 1136 | def test_invalid_value_size_rotation(rotation): |
| LOW | tests/test_filesink_rotation.py | 1142 | def test_invalid_unit_rotation_duration(rotation): |
| LOW | tests/test_filesink_rotation.py | 1148 | def test_invalid_value_rotation_duration(rotation): |
| LOW | tests/test_filesink_rotation.py | 191 | def test_time_rotation_with_tzinfo_diff_bigger(freeze_time, tmp_path): |
| LOW | tests/test_filesink_rotation.py | 214 | def test_time_rotation_with_tzinfo_diff_lower(freeze_time, tmp_path): |
| LOW | tests/test_filesink_rotation.py | 237 | def test_time_rotation_with_tzinfo_utc(freeze_time, tmp_path): |
| LOW | tests/test_filesink_rotation.py | 263 | def test_time_rotation_multiple_days_at_midnight_utc(freeze_time, tmp_path): |
| LOW | tests/test_filesink_rotation.py | 295 | def test_daily_rotation_with_different_timezone(freeze_time, tmp_path, offset): |
| LOW | tests/test_filesink_rotation.py | 333 | def test_time_rotation_after_positive_timezone_changes_forward(freeze_time, tmp_path, rotation): |
| LOW | tests/test_filesink_rotation.py | 360 | def test_time_rotation_when_positive_timezone_changes_forward(freeze_time, tmp_path, rotation): |
| LOW | tests/test_filesink_rotation.py | 396 | def test_time_rotation_after_negative_timezone_changes_forward(freeze_time, tmp_path, rotation): |
| LOW | tests/test_filesink_rotation.py | 423 | def test_time_rotation_when_negative_timezone_changes_forward(freeze_time, tmp_path, rotation): |
| LOW | tests/test_filesink_rotation.py | 457 | def test_time_rotation_after_positive_timezone_changes_backward_aware( |
| LOW | tests/test_filesink_rotation.py | 486 | def test_time_rotation_after_positive_timezone_changes_backward_naive( |
| LOW | tests/test_filesink_rotation.py | 524 | def test_time_rotation_after_negative_timezone_changes_backward_aware( |
| LOW | tests/test_filesink_rotation.py | 553 | def test_time_rotation_after_negative_timezone_changes_backward_naive( |
| LOW | tests/test_filesink_rotation.py | 583 | def test_time_rotation_when_timezone_changes_backward_rename_file(freeze_time, tmp_path): |
| LOW | tests/test_filesink_rotation.py | 619 | def test_dont_rotate_earlier_when_utc_is_one_day_before(freeze_time, tmp_path, rotation): |
| LOW | tests/test_filesink_rotation.py | 654 | def test_dont_rotate_later_when_utc_is_one_day_after(freeze_time, tmp_path, rotation): |
| LOW | tests/test_filesink_rotation.py | 680 | def test_rotation_at_midnight_with_date_in_filename(freeze_time, tmp_path, timezone): |
| LOW | tests/test_filesink_rotation.py | 702 | def test_time_rotation_reopening_native(tmp_path_local, delay): |
| LOW | tests/test_filesink_rotation.py | 758 | def test_time_rotation_reopening_xattr_attributeerror(tmp_path_local, monkeypatch, delay): |
| LOW | tests/test_filesink_rotation.py | 794 | def test_time_rotation_reopening_xattr_oserror(tmp_path_local, monkeypatch, delay): |
| LOW | tests/test_filesink_rotation.py | 823 | def test_time_rotation_windows_no_setctime(tmp_path, monkeypatch): |
| LOW | tests/test_filesink_rotation.py | 847 | def test_time_rotation_windows_setctime_exception(tmp_path, monkeypatch, exception): |
| LOW | tests/test_filesink_rotation.py | 915 | def test_no_rotation_at_remove(tmp_path, mode): |
| LOW | tests/test_filesink_rotation.py | 923 | def test_rename_existing_with_creation_time(freeze_time, tmp_path): |
| LOW | tests/test_filesink_rotation.py | 939 | def test_renaming_rotation_dest_exists(freeze_time, tmp_path): |
| LOW | tests/test_filesink_rotation.py | 957 | def test_renaming_rotation_dest_exists_with_time(freeze_time, tmp_path): |
| LOW | tests/test_filesink_rotation.py | 977 | def test_exception_during_rotation(tmp_path, capsys): |
| LOW | tests/test_filesink_rotation.py | 996 | def test_exception_during_rotation_not_caught(tmp_path, capsys): |
| LOW | tests/test_filesink_rotation.py | 1015 | def test_recipe_rotation_both_size_and_time(freeze_time, tmp_path): |
| LOW | tests/test_filesink_rotation.py | 1062 | def test_multiple_rotation_conditions(freeze_time, tmp_path): |
| LOW | tests/test_filesink_rotation.py | 1087 | def test_empty_rotation_condition_list(): |
| LOW | tests/test_filesink_rotation.py | 1095 | def test_invalid_rotation_type(rotation): |
| LOW | tests/test_add_option_serialize.py | 29 | def test_serialize_non_ascii_characters(): |
| LOW | tests/test_add_option_serialize.py | 60 | def test_serialize_exception_without_context(): |
| LOW | tests/test_add_option_serialize.py | 77 | def test_serialize_exception_none_tuple(): |
| LOW | tests/test_add_option_serialize.py | 94 | def test_serialize_exception_instance(): |
| LOW | tests/test_add_option_serialize.py | 111 | def test_serialize_with_catch_decorator(): |
| LOW | tests/test_add_option_serialize.py | 127 | def test_serialize_with_record_option(): |
| LOW | tests/test_add_option_serialize.py | 137 | def test_serialize_not_serializable(): |
| 353 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_opt.py | 68 | except Exception: |
| LOW | tests/test_opt.py | 82 | except Exception: |
| LOW | tests/test_opt.py | 98 | except Exception: |
| LOW | tests/test_opt.py | 114 | except Exception: |
| LOW | tests/test_interception.py | 110 | except Exception: |
| LOW | tests/test_add_option_diagnose.py | 10 | except Exception: |
| LOW | tests/test_add_option_diagnose.py | 20 | except Exception: |
| LOW | tests/test_exceptions_catch.py | 75 | except Exception: |
| LOW | tests/test_exceptions_catch.py | 91 | except Exception: |
| LOW | tests/test_add_option_enqueue.py | 263 | except Exception: |
| LOW | tests/test_add_option_enqueue.py | 286 | except Exception: |
| LOW | tests/test_propagation.py | 89 | except Exception: |
| LOW | tests/test_add_option_backtrace.py | 10 | except Exception: |
| LOW | tests/test_add_option_backtrace.py | 20 | except Exception: |
| LOW | tests/test_exceptions_formatting.py | 286 | except Exception: |
| LOW | …tions/source/backtrace/missing_lineno_frame_objects.py | 40 | except Exception as e: |
| LOW | tests/exceptions/source/backtrace/nested_wrapping.py | 32 | except Exception: |
| LOW | …exceptions/source/backtrace/nested_chained_catch_up.py | 23 | except Exception as e: |
| MEDIUM | …exceptions/source/backtrace/nested_chained_catch_up.py | 20 | def main(): |
| LOW | tests/exceptions/source/others/repeated_lines.py | 22 | except Exception: |
| LOW | tests/exceptions/source/others/one_liner_recursion.py | 15 | except Exception: |
| LOW | tests/exceptions/source/others/recursion_error.py | 20 | except Exception: |
| LOW | tests/exceptions/source/others/nested_with_reraise.py | 21 | except Exception as e: |
| MEDIUM | tests/exceptions/source/others/nested_with_reraise.py | 18 | def bar(x, y): |
| LOW | tests/exceptions/source/diagnose/chained_both.py | 16 | except Exception: |
| LOW | tests/exceptions/source/diagnose/chained_both.py | 23 | except Exception as e: |
| MEDIUM | tests/exceptions/source/diagnose/chained_both.py | 13 | def cause(x, y): |
| MEDIUM | tests/exceptions/source/diagnose/chained_both.py | 20 | def context(x, y): |
| LOW | tests/exceptions/source/modern/grouped_simple.py | 27 | except Exception as error_1: |
| LOW | tests/exceptions/source/modern/grouped_simple.py | 30 | except Exception as error_2: |
| LOW | tests/exceptions/source/modern/grouped_simple.py | 33 | except Exception as error_3: |
| MEDIUM | tests/exceptions/source/modern/grouped_simple.py | 24 | def main(): |
| LOW | …ptions/source/modern/grouped_with_cause_and_context.py | 18 | except Exception as err: |
| LOW | …ptions/source/modern/grouped_with_cause_and_context.py | 20 | except Exception as err: |
| LOW | …ptions/source/modern/grouped_with_cause_and_context.py | 25 | except Exception as err: |
| LOW | …ptions/source/modern/grouped_with_cause_and_context.py | 27 | except Exception as err: |
| LOW | …ptions/source/modern/grouped_with_cause_and_context.py | 32 | except Exception as err: |
| LOW | …ptions/source/modern/grouped_with_cause_and_context.py | 35 | except Exception: |
| MEDIUM | …ptions/source/modern/grouped_with_cause_and_context.py | 14 | def main(): |
| LOW | tests/exceptions/source/modern/grouped_nested.py | 18 | except Exception as err: |
| LOW | tests/exceptions/source/modern/grouped_nested.py | 23 | except Exception as err: |
| LOW | tests/exceptions/source/modern/grouped_nested.py | 30 | except Exception as err: |
| MEDIUM | tests/exceptions/source/modern/grouped_nested.py | 14 | def main(): |
| LOW | …ceptions/source/modern/grouped_as_cause_and_context.py | 21 | except Exception as err: |
| LOW | …ceptions/source/modern/grouped_as_cause_and_context.py | 26 | except Exception as err: |
| LOW | …ceptions/source/modern/grouped_as_cause_and_context.py | 32 | except Exception as err: |
| LOW | …ceptions/source/modern/grouped_as_cause_and_context.py | 34 | except Exception as err: |
| MEDIUM | …ceptions/source/modern/grouped_as_cause_and_context.py | 18 | def main(): |
| LOW | loguru/_better_exceptions.py | 345 | except Exception: |
| MEDIUM | loguru/_better_exceptions.py | 185 | def _get_char(self, char, default): |
| LOW | loguru/_handler.py | 207 | except Exception: |
| LOW | loguru/_handler.py | 318 | except Exception: |
| LOW | loguru/_handler.py | 333 | except Exception: |
| MEDIUM | loguru/_handler.py | 127 | def emit(self, record, level_id, from_decorator, is_raw, colored_message): |
| LOW | loguru/_colorama.py | 32 | except Exception: |
| LOW | loguru/_colorama.py | 53 | except Exception: |
| LOW | loguru/_colorama.py | 76 | except Exception: |
| LOW | loguru/_simple_sinks.py | 194 | except Exception: |
| LOW | loguru/_error_interceptor.py | 26 | except Exception: |
| LOW | loguru/_get_frame.py | 8 | except Exception: |
| 3 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | loguru/_better_exceptions.py | 64 | |
| LOW | loguru/_better_exceptions.py | 202 | |
| LOW | loguru/_better_exceptions.py | 267 | |
| LOW | loguru/_better_exceptions.py | 353 | |
| LOW | loguru/_better_exceptions.py | 393 | |
| LOW | loguru/_colorizer.py | 222 | |
| LOW | loguru/_colorizer.py | 416 | |
| LOW | loguru/_colorizer.py | 477 | |
| LOW | loguru/_handler.py | 127 | |
| LOW | loguru/_file_sink.py | 377 | |
| LOW | loguru/_logger.py | 261 | |
| LOW | loguru/_logger.py | 1169 | |
| LOW | loguru/_logger.py | 1873 | |
| LOW | loguru/_logger.py | 2028 | |
| LOW | loguru/_logger.py | 1306 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/exceptions/source/ownership/callback.py | 3 | |
| LOW | …ts/exceptions/source/ownership/assertion_from_local.py | 3 | |
| LOW | …ts/exceptions/source/ownership/assertion_from_local.py | 4 | |
| LOW | tests/exceptions/source/ownership/assertion_from_lib.py | 3 | |
| LOW | tests/exceptions/source/ownership/syntaxerror.py | 3 | |
| LOW | tests/exceptions/source/ownership/decorated_callback.py | 3 | |
| LOW | tests/exceptions/source/ownership/decorated_callback.py | 4 | |
| LOW | tests/exceptions/source/ownership/catch_decorator.py | 3 | |
| LOW | tests/exceptions/source/ownership/indirect.py | 3 | |
| LOW | …xceptions/source/ownership/catch_decorator_from_lib.py | 3 | |
| LOW | tests/exceptions/source/ownership/string_lib.py | 3 | |
| LOW | tests/exceptions/source/ownership/direct.py | 3 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_multiprocessing.py | 26 | def do_something(i): |
| LOW | tests/test_repr.py | 84 | def test_function(): |
| LOW | tests/test_repr.py | 85 | def my_function(message): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | docs/conf.py | 81 | # The theme to use for HTML and HTML Help pages. See the documentation for |
| LOW | docs/conf.py | 101 | # defined by theme itself. Builtin themes are using these templates by |
| LOW | docs/conf.py | 121 | # |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | loguru/_logger.py | 769 | Windows, don't forget to restart your terminal for the change to be taken into account. |
| LOW | loguru/_logger.py | 1724 | >>> logger.info("While publishing a library, don't forget to disable logging") |