From dc059557e7d6b09d8370c5a7b452c9a0d3286c2e Mon Sep 17 00:00:00 2001 From: Arnaud Date: Mon, 7 Oct 2024 15:10:19 +0200 Subject: [PATCH 1/2] Update linting.yml --- .github/workflows/linting.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 036b53f2..2570855d 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -9,5 +9,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 - - uses: pre-commit/action@v3.0.0 + - uses: actions/setup-python@v5 + with: + python-version: '3.x' + - uses: pre-commit/action@v3.0.1 + From cb3532ef6a181b34b853fafed63675dcf080af3c Mon Sep 17 00:00:00 2001 From: Arnaud Date: Mon, 7 Oct 2024 13:15:28 +0000 Subject: [PATCH 2/2] Run pre-commit --- .github/workflows/linting.yml | 4 ++-- gallery/streamlit_app.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 2570855d..22221622 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -11,6 +11,6 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.x' + python-version: '3.x' - uses: pre-commit/action@v3.0.1 - + diff --git a/gallery/streamlit_app.py b/gallery/streamlit_app.py index fe17d843..ca7aeeb5 100644 --- a/gallery/streamlit_app.py +++ b/gallery/streamlit_app.py @@ -14,7 +14,7 @@ @st.cache_resource def show_extras(): extra_names = [ - extra.name + extra.name for extra in pkgutil.iter_modules(streamlit_extras.__path__) if extra.ispkg ]