mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-16 22:10:26 +00:00
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:
parent
f19fd4f5bc
commit
80763ed1ea
3 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue