Skip to content

Commit c6bf8e9

Browse files
authored
Workaround for B909 in flake8-bugbear (#7691)
Workaround for #7690 ### Description Updated with flake8-bugbear, causing the B909 error. A workaround fix was made for the flake8-bugbear version because the 24.4.21 update contained some false positives. Fore more information, see PyCQA/flake8-bugbear#467 ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
1 parent 03a5fa6 commit c6bf8e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ repos:
5858
name: Unused noqa
5959
additional_dependencies:
6060
- flake8>=3.8.1
61-
- flake8-bugbear
61+
- flake8-bugbear<=24.2.6
6262
- flake8-comprehensions
6363
- pep8-naming
6464
exclude: |

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ scikit-image>=0.19.0
1111
tqdm>=4.47.0
1212
lmdb
1313
flake8>=3.8.1
14-
flake8-bugbear
14+
flake8-bugbear<=24.2.6 # https://github.com/Project-MONAI/MONAI/issues/7690
1515
flake8-comprehensions
1616
mccabe
1717
pep8-naming

0 commit comments

Comments
 (0)