Skip to content

Commit

Permalink
docs(is_external_link): Fix numpydoc styling
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Dec 21, 2023
1 parent 8679fcf commit ea2dd97
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions alagitpull/writers/external.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@
def is_external_link(url, internal_hosts):
"""Determine if a URL is internal or external
:param url: url to check if off-site
:type url: string
:param hosts: whitelist of host TLD/IP's that are internal
:type hosts: list
:returns: whether url is internal or external to website
:rtype: value
Parameters
----------
url : str
url to check if off-site
hosts : str
whitelist of host TLD/IP's that are internal
Returns
-------
bool
whether url is internal or external to website
"""
tld = urlparse(url).hostname or url
return (
Expand Down

0 comments on commit ea2dd97

Please sign in to comment.