From 1810a3f63af318d8200ebbecbc3379c63dabdb4b Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Wed, 1 Feb 2023 09:49:57 +0200 Subject: [PATCH] Fix Flake8 --- conf.py | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/conf.py b/conf.py index 29563db509..cd4553c8ff 100644 --- a/conf.py +++ b/conf.py @@ -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