From 8545847ec59d3ae86abd98a2c69e38714b00fe43 Mon Sep 17 00:00:00 2001 From: YunLiu <55491388+KumoLiu@users.noreply.github.com> Date: Tue, 16 Jan 2024 16:08:38 +0800 Subject: [PATCH 1/2] workaround of #7390 Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- requirements-dev.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 14b41bbeb8..e27b241b39 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -58,7 +58,7 @@ repos: name: Unused noqa additional_dependencies: - flake8>=3.8.1 - - flake8-bugbear + - flake8-bugbear<=23.12.2 - flake8-comprehensions - pep8-naming exclude: | diff --git a/requirements-dev.txt b/requirements-dev.txt index f8bc9d5a3e..21eb385943 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -11,7 +11,7 @@ scikit-image>=0.19.0 tqdm>=4.47.0 lmdb flake8>=3.8.1 -flake8-bugbear +flake8-bugbear<=23.12.2 # https://github.com/Project-MONAI/MONAI/issues/7390 flake8-comprehensions mccabe pep8-naming From 13c857d789af2c44f48e175d4780757ef94268bb Mon Sep 17 00:00:00 2001 From: YunLiu <55491388+KumoLiu@users.noreply.github.com> Date: Tue, 16 Jan 2024 23:55:49 +0800 Subject: [PATCH 2/2] minor update Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- requirements-dev.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e27b241b39..14b41bbeb8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -58,7 +58,7 @@ repos: name: Unused noqa additional_dependencies: - flake8>=3.8.1 - - flake8-bugbear<=23.12.2 + - flake8-bugbear - flake8-comprehensions - pep8-naming exclude: | diff --git a/requirements-dev.txt b/requirements-dev.txt index 21eb385943..f8bc9d5a3e 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -11,7 +11,7 @@ scikit-image>=0.19.0 tqdm>=4.47.0 lmdb flake8>=3.8.1 -flake8-bugbear<=23.12.2 # https://github.com/Project-MONAI/MONAI/issues/7390 +flake8-bugbear flake8-comprehensions mccabe pep8-naming