Skip to content

Commit 7b08627

Browse files
committed
check links : skip github.com and towardsdatascience.com
1 parent c665b6c commit 7b08627

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/check_links_in_ipynb.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ def check_link_in_cell(cell, r, just_tested:List[str]=[]):
5858
elif (
5959
(os.environ.get('CI', 'false').lower() == 'true') and
6060
(
61-
parsed.netloc.endswith('stackoverflow.com') or
62-
parsed.netloc.endswith('askubuntu.com') or
63-
parsed.netloc.endswith('stackexchange.com')
61+
parsed.netloc.endswith('stackoverflow.com')
62+
or parsed.netloc.endswith('askubuntu.com')
63+
or parsed.netloc.endswith('stackexchange.com')
64+
or parsed.netloc.endswith('github.com')
65+
or parsed.netloc.endswith('towardsdatascience.com')
6466
)
6567
):
6668
# TODO : enable testing for stackoverflow.com on Github Actions

0 commit comments

Comments
 (0)