From 30d60593c99bfdd9167040b48ed3152894d3ad66 Mon Sep 17 00:00:00 2001 From: Pablo Hernandez-Cerdan Date: Mon, 12 Feb 2024 22:50:03 +0100 Subject: [PATCH] Update black --- .pre-commit-config.yaml | 2 +- mdai_utils/download_annotations.py | 6 +++--- requirements-dev.in | 2 +- requirements-dev.txt | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a2f3414..0d60d1a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 24.2.0 hooks: - id: black args: [--target-version=py310] diff --git a/mdai_utils/download_annotations.py b/mdai_utils/download_annotations.py index a64457d..ee57d46 100644 --- a/mdai_utils/download_annotations.py +++ b/mdai_utils/download_annotations.py @@ -262,9 +262,9 @@ def get_dicom_names_ordered_and_metadata(dicom_dir): sop_instances_uids_ordered_by_index = [ uid for _, uid in dicom_names_with_uid_ordered ] - metadict_volume[ - "sop_instances_uids_ordered_by_index" - ] = sop_instances_uids_ordered_by_index + metadict_volume["sop_instances_uids_ordered_by_index"] = ( + sop_instances_uids_ordered_by_index + ) return dicom_names_with_uid_ordered, metadict_volume diff --git a/requirements-dev.in b/requirements-dev.in index d45ba90..7cc3823 100644 --- a/requirements-dev.in +++ b/requirements-dev.in @@ -1,4 +1,4 @@ -black>=23.7.0 +black>=24.2.0 isort>=5.12.0 pre-commit>=3.4 pip-tools>=7.3.0 diff --git a/requirements-dev.txt b/requirements-dev.txt index 6c4d286..d8368e3 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -4,7 +4,7 @@ # # pip-compile requirements-dev.in # -black==23.9.1 +black==24.2.0 # via -r requirements-dev.in build==1.0.3 # via