Skip to content

Commit 2bb1602

Browse files
committed
Merge remote-tracking branch 'origin/master'
# Conflicts: # .github/workflows/release.yml
2 parents b8bc60b + dbc4818 commit 2bb1602

6 files changed

Lines changed: 19 additions & 88 deletions

File tree

.github/workflows/docs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121
jobs:
2222
prepare:
2323
name: Get Current version
24-
runs-on: ubuntu-22.04
24+
runs-on: ubuntu-24.04
2525

2626
outputs:
2727
version: ${{ steps.version.outputs.value }}
@@ -46,7 +46,7 @@ jobs:
4646
4747
publish-docs:
4848
name: Publish Docs
49-
runs-on: ubuntu-22.04
49+
runs-on: ubuntu-24.04
5050

5151
needs:
5252
- prepare
@@ -66,7 +66,7 @@ jobs:
6666
- name: Setup Python
6767
uses: actions/setup-python@v5
6868
with:
69-
python-version: "3.11"
69+
python-version: "3.13"
7070

7171
- name: Cache pip dependencies
7272
id: cache

.github/workflows/pull-request.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
commitlint:
1111
name: Lint commit message
12-
runs-on: ubuntu-22.04
12+
runs-on: ubuntu-24.04
1313

1414
steps:
1515
- uses: actions/checkout@v4
@@ -21,7 +21,7 @@ jobs:
2121
lint:
2222
if: github.actor != 'renovate[bot]'
2323
name: Lint source code
24-
runs-on: ubuntu-22.04
24+
runs-on: ubuntu-24.04
2525

2626
steps:
2727
- uses: actions/checkout@v4
@@ -40,7 +40,7 @@ jobs:
4040
- name: Set up Python 3.11
4141
uses: actions/setup-python@v5
4242
with:
43-
python-version: '3.11'
43+
python-version: '3.13'
4444

4545
- uses: actions/cache@v4
4646
name: Cache pip dependencies
@@ -85,15 +85,15 @@ jobs:
8585

8686
validate-docs:
8787
name: Validate Docs
88-
runs-on: ubuntu-22.04
88+
runs-on: ubuntu-24.04
8989

9090
steps:
9191
- uses: actions/checkout@v4
9292

9393
- name: Setup Python 3.11
9494
uses: actions/setup-python@v5
9595
with:
96-
python-version: '3.11'
96+
python-version: '3.13'
9797

9898
- name: Cache pip dependencies
9999
id: cache

.github/workflows/release-deprecated.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Python 3.11
2323
uses: actions/setup-python@v5
2424
with:
25-
python-version: '3.11'
25+
python-version: '3.13'
2626

2727
- uses: actions/cache@v4
2828
name: Cache pip dependencies
@@ -74,7 +74,9 @@ jobs:
7474
runs-on: ubuntu-22.04
7575

7676
needs: package
77-
77+
permissions:
78+
id-token: write
79+
contents: read
7880
steps:
7981
- uses: actions/download-artifact@v4
8082
with:

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
- run: codecov -F py${{ matrix.python-version }}-${{ matrix.os }}-${{ matrix.pandas }}-${{ matrix.numpy }}
123123

124124
test_spark:
125-
runs-on: ubuntu-22.04
125+
runs-on: ubuntu-24.04
126126
continue-on-error: false
127127
strategy:
128128
matrix:

src/ydata_profiling/utils/information.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
References and information regarding ydata-profiling and ydata-sdk
33
"""
44
import importlib.util
5+
import os
56

67
_displayed_banner = False
8+
SUPPRESS_BANNER = bool(os.getenv("YDATA_SUPPRESS_BANNER", ""))
79

810
link = "https://ydata.ai/register"
911
title = "Upgrade to ydata-sdk"
@@ -15,10 +17,8 @@ def in_jupyter_notebook() -> bool:
1517
if importlib.util.find_spec("IPython") is not None:
1618
from IPython import get_ipython
1719

18-
isiPython = not get_ipython() is None
19-
else:
20-
isiPython = False
21-
return isiPython
20+
return get_ipython() is not None
21+
return False
2222

2323

2424
class DisplayInfo:
@@ -61,8 +61,8 @@ def display_message(self) -> None:
6161

6262
def display_banner() -> None:
6363
global _displayed_banner
64-
banner_info = DisplayInfo(title=title, info_text=info_text)
6564

66-
if not _displayed_banner:
65+
if not _displayed_banner and not SUPPRESS_BANNER:
66+
banner_info = DisplayInfo(title=title, info_text=info_text)
6767
banner_info.display_message()
6868
_displayed_banner = True

0 commit comments

Comments
 (0)