Skip to content

Commit

Permalink
Fix Flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Feb 1, 2023
1 parent 1e8b3a9 commit 1810a3f
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,29 @@

linkcheck_allowed_redirects = {
# Edit page
r"https://docs.google.com/document/d/.*/": r"https://docs.google.com/document/d/.*/edit",
r"https://docs.google.com/document/d/.*/": (
r"https://docs.google.com/document/d/.*/edit",
),
# Canonical
r"https://docs.python.org/": r"https://docs.python.org/3/",
# Translations with country codes
r"https://docs.python.org/[a-z-]+/": r"https://docs.python.org/[a-z-]+/3/",
# Personal /my/ links redirect to login page
r"https://discuss.python.org/my/.*": r"https://discuss.python.org/login-preferences",
r"https://discuss.python.org/my/.*": (
r"https://discuss.python.org/login-preferences"
),
# Login page
r"https://github.com/python/core-workflow/issues/new.*": r"https://github.com/login.*",
r"https://github.com/python/core-workflow/issues/new.*": (
r"https://github.com/login.*"
),
# Archive redirect
r"https://github.com/python/cpython/archive/main.zip": r"https://codeload.github.com/python/cpython/zip/refs/heads/main",
r"https://github.com/python/cpython/archive/main.zip": (
r"https://codeload.github.com/python/cpython/zip/refs/heads/main"
),
# Blob to tree
r"https://github.com/python/cpython/blob/.*": r"https://github.com/python/cpython/tree/.*",
r"https://github.com/python/cpython/blob/.*": (
r"https://github.com/python/cpython/tree/.*"
),
# HackMD shortcuts
r"https://hackmd.io/s/.*": r"https://hackmd.io/@.*",
# Read the Docs
Expand Down

0 comments on commit 1810a3f

Please sign in to comment.