Skip to content

Commit ea460ff

Browse files
Merge branch 'main' into dependabot/github_actions/actions/upload-artifact-5
2 parents c9e134c + 9ecb02a commit ea460ff

17 files changed

Lines changed: 1411 additions & 131 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353

5454
# Initializes the CodeQL tools for scanning.
5555
- name: Initialize CodeQL
56-
uses: github/codeql-action/init@v3
56+
uses: github/codeql-action/init@v4
5757
with:
5858
languages: ${{ matrix.language }}
5959
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -74,4 +74,4 @@ jobs:
7474
# uses a compiled language
7575

7676
- name: Perform CodeQL Analysis
77-
uses: github/codeql-action/analyze@v3
77+
uses: github/codeql-action/analyze@v4

.github/workflows/docker-plugin.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
MONAI_ZOO_AUTH_TOKEN: ${{ github.token }}
2727
steps:
2828
- uses: actions/checkout@v5
29-
- name: Set up Python 3.9
30-
uses: actions/setup-python@v5
29+
- name: Set up Python 3.10
30+
uses: actions/setup-python@v6
3131
with:
32-
python-version: 3.9
32+
python-version: 3.10
3333
- name: clean up
3434
run: |
3535
sudo rm -rf /usr/share/dotnet

.github/workflows/pythonapp.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
steps:
3737
- uses: actions/checkout@v5
3838
- name: Set up Python
39-
uses: actions/setup-python@v5
39+
uses: actions/setup-python@v6
4040
with:
4141
python-version: ${{ matrix.python-version }}
4242
- if: runner.os == 'Linux'
@@ -58,7 +58,7 @@ jobs:
5858
steps:
5959
- uses: actions/checkout@v5
6060
- name: Set up Python
61-
uses: actions/setup-python@v5
61+
uses: actions/setup-python@v6
6262
with:
6363
python-version: ${{ matrix.python-version }}
6464
- name: Install dependencies
@@ -93,9 +93,9 @@ jobs:
9393
- uses: actions/checkout@v5
9494
with:
9595
fetch-depth: 0
96-
- uses: actions/setup-node@v4
96+
- uses: actions/setup-node@v6
9797
- name: Set up Python
98-
uses: actions/setup-python@v5
98+
uses: actions/setup-python@v6
9999
with:
100100
python-version: ${{ matrix.python-version }}
101101
- name: cache weekly timestamp
@@ -154,7 +154,7 @@ jobs:
154154
steps:
155155
- uses: actions/checkout@v5
156156
- name: Set up Python
157-
uses: actions/setup-python@v5
157+
uses: actions/setup-python@v6
158158
with:
159159
python-version: ${{ matrix.python-version }}
160160
- name: cache weekly timestamp

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ jobs:
3434
- uses: actions/checkout@v5
3535
with:
3636
fetch-depth: 0
37-
- uses: actions/setup-node@v4
38-
- name: Set up Python 3.9
39-
uses: actions/setup-python@v5
37+
- uses: actions/setup-node@v6
38+
- name: Set up Python 3.10
39+
uses: actions/setup-python@v6
4040
with:
41-
python-version: 3.9
41+
python-version: 3.10
4242
- name: Cache for pip
4343
uses: actions/cache@v4
4444
id: cache

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ci:
1515

1616
repos:
1717
- repo: https://github.com/pre-commit/pre-commit-hooks
18-
rev: v5.0.0
18+
rev: v6.0.0
1919
hooks:
2020
- id: check-merge-conflict
2121
- id: trailing-whitespace
@@ -33,27 +33,27 @@ repos:
3333
- id: mixed-line-ending
3434

3535
- repo: https://github.com/pycqa/isort
36-
rev: 6.0.1
36+
rev: 6.1.0
3737
hooks:
3838
- id: isort
3939
name: isort (python)
4040
args: ["--line-length=120", "--profile=black"]
4141

4242
- repo: https://github.com/pycqa/isort
43-
rev: 6.0.1
43+
rev: 6.1.0
4444
hooks:
4545
- id: isort
4646
name: isort (python) (check)
4747
args: ["--line-length=120", "--profile=black", "--check"]
4848

49-
- repo: https://github.com/psf/black
50-
rev: 25.1.0
49+
- repo: https://github.com/psf/black-pre-commit-mirror
50+
rev: 25.9.0
5151
hooks:
5252
- id: black
5353
args: ["--line-length=120"]
5454

55-
- repo: https://github.com/psf/black
56-
rev: 25.1.0
55+
- repo: https://github.com/psf/black-pre-commit-mirror
56+
rev: 25.9.0
5757
hooks:
5858
- id: black
5959
name: black (check)
@@ -66,7 +66,7 @@ repos:
6666
args: ["--count", "--statistics", "--config=setup.cfg"]
6767

6868
- repo: https://github.com/pre-commit/mirrors-mypy
69-
rev: v1.16.1
69+
rev: v1.18.2
7070
hooks:
7171
- id: mypy
7272
exclude: (^tests/|^plugins/)

docs/source/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Prerequisites
5252
--------------------------
5353
MONAI Label supports both **Ubuntu** and **Windows** OS with GPU/CUDA enabled.
5454

55-
Make sure you have python 3.8/3.9 version environment with PyTorch and CUDA installed. MONAI Label features on other python version are not verified.
55+
Make sure you have python 3.10+ version environment with PyTorch and CUDA installed. MONAI Label features on other python version are not verified.
5656

5757
- Install `Python <https://www.python.org/downloads/>`_
5858
- Install the following Python libraries

monailabel/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020
def is_package_installed(name):
21-
return name in (x.metadata.get("Name") for x in distributions())
21+
return name in (x.metadata.get("Name") for x in distributions() if x.metadata is not None)
2222

2323

2424
class Settings(BaseSettings):

0 commit comments

Comments
 (0)