Skip to content

B038 errors after flake8-bugbear upgrade #1617

@KumoLiu

Description

@KumoLiu
[2024-01-17T00:37:03.267Z] Running ./computer_assisted_intervention/video_seg.ipynb
[2024-01-17T00:37:03.267Z] Checking PEP8 compliance...
[2024-01-17T00:37:03.830Z] stdin:231:5: B038 editing a loop's mutable iterable often leads to unexpected results/bugs
[2024-01-17T00:37:03.830Z]     tr.set_description(f"Loss: {epoch_loss:.4f}")
[2024-01-17T00:37:03.830Z]     ^
[2024-01-17T00:37:03.831Z] Error: Try running with autofixes: --autofix.
[2024-01-17T00:37:03.831Z] 
[2024-01-17T00:37:03.831Z] Check failed!
[2024-01-17T00:59:55.129Z] Running ./modules/interpretability/covid_classification.ipynb
[2024-01-17T00:59:55.129Z] Checking PEP8 compliance...
[2024-01-17T00:59:56.060Z] stdin:237:5: B038 editing a loop's mutable iterable often leads to unexpected results/bugs
[2024-01-17T00:59:56.060Z]     tr.set_description(f"Epoch {epoch+1}, loss: {loss:.3f}, acc: {acc:.4f}")
[2024-01-17T00:59:56.060Z]     ^
[2024-01-17T00:59:56.060Z] Error: Try running with autofixes: --autofix.
[2024-01-17T00:59:56.060Z] 
[2024-01-17T00:59:56.060Z] Check failed!
[2024-01-17T01:16:41.060Z] Running ./modules/varautoencoder_mednist.ipynb
[2024-01-17T01:16:41.060Z] Checking PEP8 compliance...
[2024-01-17T01:16:41.626Z] stdin:263:9: B038 editing a loop's mutable iterable often leads to unexpected results/bugs
[2024-01-17T01:16:41.626Z]         t.set_description(
[2024-01-17T01:16:41.626Z]         ^
[2024-01-17T01:16:41.882Z] Error: Try running with autofixes: --autofix.
[2024-01-17T01:16:41.882Z] 
[2024-01-17T01:16:41.882Z] Check failed!
[2024-01-17T02:03:23.197Z] Running ./modules/transforms_update_meta_data.ipynb
[2024-01-17T02:03:23.197Z] Checking PEP8 compliance...
[2024-01-17T02:03:24.132Z] stdin:149:5: B038 editing a loop's mutable iterable often leads to unexpected results/bugs
[2024-01-17T02:03:24.132Z]     tr.set_description(f"Loss: {loss.item():.4f}")
[2024-01-17T02:03:24.132Z]     ^
[2024-01-17T02:03:24.132Z] Error: Try running with autofixes: --autofix.
[2024-01-17T02:03:24.132Z] 
[2024-01-17T02:03:24.132Z] Check failed!
[2024-01-17T02:35:36.715Z] Running ./modules/autoencoder_mednist.ipynb
[2024-01-17T02:35:36.715Z] Checking PEP8 compliance...
[2024-01-17T02:35:37.650Z] stdin:239:9: B038 editing a loop's mutable iterable often leads to unexpected results/bugs
[2024-01-17T02:35:37.650Z]         t.set_description(f"{dict_key_for_training} -- epoch {epoch + 1}" + f", average loss: {epoch_loss:.4f}")
[2024-01-17T02:35:37.650Z]         ^
[2024-01-17T02:35:37.650Z] Error: Try running with autofixes: --autofix.
[2024-01-17T02:35:37.650Z] 
[2024-01-17T02:35:37.650Z] Check failed!
[2024-01-17T02:45:55.734Z] Running ./3d_segmentation/swin_unetr_btcv_segmentation_3d.ipynb
[2024-01-17T02:45:55.734Z] Checking PEP8 compliance...
[2024-01-17T02:45:56.300Z] stdin:385:13: B038 editing a loop's mutable iterable often leads to unexpected results/bugs
[2024-01-17T02:45:56.300Z]             epoch_iterator_val.set_description("Validate (%d / %d Steps)" % (global_step, 10.0))
[2024-01-17T02:45:56.300Z]             ^
[2024-01-17T02:45:56.300Z] Error: Try running with autofixes: --autofix.
[2024-01-17T02:45:56.300Z] 
[2024-01-17T02:45:56.300Z] Check failed!
[2024-01-17T03:02:04.578Z] Running ./3d_segmentation/unetr_btcv_segmentation_3d.ipynb
[2024-01-17T03:02:04.578Z] Checking PEP8 compliance...
[2024-01-17T03:02:05.509Z] stdin:482:13: B038 editing a loop's mutable iterable often leads to unexpected results/bugs
[2024-01-17T03:02:05.509Z]             epoch_iterator_val.set_description("Validate (%d / %d Steps)" % (global_step, 10.0))
[2024-01-17T03:02:05.509Z]             ^
[2024-01-17T03:02:05.509Z] Error: Try running with autofixes: --autofix.
[2024-01-17T03:02:05.509Z] 
[2024-01-17T03:02:05.509Z] Check failed!

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