Skip to content

New errors after flake8-bugbear upgrade  #7396

Closed
@KumoLiu

Description

@KumoLiu

new issue from flake8-bugbear: 23.1.15

[2024-01-16T16:07:31.298Z] 7.0.0 (flake8-bugbear: 24.1.16, flake8-comprehensions: 3.14.0, mccabe: 0.7.0,
[2024-01-16T16:07:31.299Z] pep8-naming: 0.13.3, pycodestyle: 2.11.1, pyflakes: 3.2.0) CPython 3.8.10 on
[2024-01-16T16:07:31.299Z] Linux
[2024-01-16T16:07:37.815Z] /home/jenkins/agent/workspace/MONAI-premerge/monai/monai/apps/auto3dseg/data_analyzer.py:344:13: B036 Don't except `BaseException` unless you plan to re-raise it.
[2024-01-16T16:07:37.815Z] /home/jenkins/agent/workspace/MONAI-premerge/monai/monai/apps/auto3dseg/ensemble_builder.py:219:17: B036 Don't except `BaseException` unless you plan to re-raise it.
[2024-01-16T16:07:37.815Z] /home/jenkins/agent/workspace/MONAI-premerge/monai/monai/apps/auto3dseg/utils.py:55:13: B036 Don't except `BaseException` unless you plan to re-raise it.
[2024-01-16T16:07:37.815Z] /home/jenkins/agent/workspace/MONAI-premerge/monai/monai/apps/detection/metrics/coco.py:544:5: B036 Don't except `BaseException` unless you plan to re-raise it.
[2024-01-16T16:07:37.815Z] /home/jenkins/agent/workspace/MONAI-premerge/monai/monai/apps/nnunet/nnunetv2_runner.py:200:9: B036 Don't except `BaseException` unless you plan to re-raise it.
[2024-01-16T16:07:37.815Z] /home/jenkins/agent/workspace/MONAI-premerge/monai/monai/apps/nnunet/nnunetv2_runner.py:278:9: B036 Don't except `BaseException` unless you plan to re-raise it.
[2024-01-16T16:07:37.815Z] /home/jenkins/agent/workspace/MONAI-premerge/monai/monai/config/deviceconfig.py:121:5: B036 Don't except `BaseException` unless you plan to re-raise it.
[2024-01-16T16:07:37.815Z] /home/jenkins/agent/workspace/MONAI-premerge/monai/monai/inferers/inferer.py:501:9: B036 Don't except `BaseException` unless you plan to re-raise it.
[2024-01-16T16:07:37.815Z] /home/jenkins/agent/workspace/MONAI-premerge/monai/monai/utils/tf32.py:44:5: B036 Don't except `BaseException` unless you plan to re-raise it.
[2024-01-16T16:07:37.815Z] /home/jenkins/agent/workspace/MONAI-premerge/monai/tests/test_flexible_unet.py:43:24: B038 editing a loop's mutable iterable often leads to unexpected results/bugs
[2024-01-16T16:07:37.815Z] /home/jenkins/agent/workspace/MONAI-premerge/monai/tests/test_invertd.py:117:43: B038 editing a loop's mutable iterable often leads to unexpected results/bugs
[2024-01-16T16:07:37.815Z] /home/jenkins/agent/workspace/MONAI-premerge/monai/tests/test_invertd.py:117:63: B038 editing a loop's mutable iterable often leads to unexpected results/bugs
[2024-01-16T16:07:37.815Z] /home/jenkins/agent/workspace/MONAI-premerge/monai/tests/test_invertd.py:122:46: B038 editing a loop's mutable iterable often leads to unexpected results/bugs
[2024-01-16T16:07:37.815Z] /home/jenkins/agent/workspace/MONAI-premerge/monai/tests/test_invertd.py:122:66: B038 editing a loop's mutable iterable often leads to unexpected results/bugs
[2024-01-16T16:07:37.815Z] /home/jenkins/agent/workspace/MONAI-premerge/monai/tests/test_resnet.py:202:13: B036 Don't except `BaseException` unless you plan to re-raise it.
[2024-01-16T16:07:37.815Z] /home/jenkins/agent/workspace/MONAI-premerge/monai/tests/test_retinanet.py:146:9: B036 Don't except `BaseException` unless you plan to re-raise it.
[2024-01-16T16:07:37.815Z] /home/jenkins/agent/workspace/MONAI-premerge/monai/tests/test_retinanet.py:179:9: B036 Don't except `BaseException` unless you plan to re-raise it.
[2024-01-16T16:07:37.815Z] /home/jenkins/agent/workspace/MONAI-premerge/monai/tests/utils.py:192:13: B036 Don't except `BaseException` unless you plan to re-raise it.
[2024-01-16T16:07:37.815Z] 13    B036 Don't except `BaseException` unless you plan to re-raise it.
[2024-01-16T16:07:37.815Z] 5     B038 editing a loop's mutable iterable often leads to unexpected results/bugs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions