Add slack to the list of ignored schemes

slack:// is a way to interact with a local Slack client [1], and is not
something that LinkChecker can check.

[1] https://api.slack.com/reference/deep-linking#client
This commit is contained in:
Chris Mayo 2020-08-09 17:10:26 +01:00
parent f19fd4f5bc
commit 80763ed1ea
3 changed files with 5 additions and 2 deletions

View file

@ -392,6 +392,7 @@ ignored_schemes_other = r"""
|find # Mozilla specific
|isbn # ISBN (int. book numbers)
|javascript # JavaScript
|slack # Slack Technologies client
"""
ignored_schemes = "^(%s%s%s%s)$" % (
@ -403,4 +404,3 @@ ignored_schemes = "^(%s%s%s%s)$" % (
ignored_schemes_re = re.compile(ignored_schemes, re.VERBOSE)
is_unknown_scheme = ignored_schemes_re.match

View file

@ -15,6 +15,7 @@ iana_uri_schemes_other = {
"find": "Mozilla specific",
"isbn": "ISBN (int. book numbers)",
"javascript": "JavaScript",
"slack": "Slack Technologies client",
}
filter_uri_schemes_permanent = (
@ -77,7 +78,7 @@ def main(args):
other=get_regex(iana_uri_schemes_other),
)
res = template % args
print(res)
print(res.rstrip())
return 0

View file

@ -45,6 +45,8 @@ per-file-ignores =
tests/__init__.py: F401
# E501: line too long
linkcheck/ftpparse.py: E501
linkcheck/checker/unknownurl.py: E501
scripts/update_iana_uri_schemes.py: E501
tests/test_ftpparse.py: E501
# F821 undefined name
# https://github.com/PyCQA/pyflakes/issues/548