Format with black

This commit is contained in:
Alexander Hess 2024-04-08 17:56:40 +02:00
parent e3ef1aec29
commit c2a1a8dcc1
Signed by: alexander
GPG key ID: 344EA5AB10D868E0

View file

@ -87,23 +87,23 @@ def fix_branch_references(_session):
{ {
"name": "github", "name": "github",
"pattern": re.compile( "pattern": re.compile(
fr"((((http)|(https))://github\.com/{REPOSITORY}/((blob)|(tree))/)([\w-]+)/)" rf"((((http)|(https))://github\.com/{REPOSITORY}/((blob)|(tree))/)([\w-]+)/)"
), ),
"replacement": fr"\2{branch}/", "replacement": rf"\2{branch}/",
}, },
{ {
"name": "nbviewer", "name": "nbviewer",
"pattern": re.compile( "pattern": re.compile(
fr"((((http)|(https))://nbviewer\.jupyter\.org/github/{REPOSITORY}/((blob)|(tree))/)([\w-]+)/)", rf"((((http)|(https))://nbviewer\.jupyter\.org/github/{REPOSITORY}/((blob)|(tree))/)([\w-]+)/)",
), ),
"replacement": fr"\2{branch}/", "replacement": rf"\2{branch}/",
}, },
{ {
"name": "mybinder", "name": "mybinder",
"pattern": re.compile( "pattern": re.compile(
fr"((((http)|(https))://mybinder\.org/v2/gh/{REPOSITORY}/)([\w-]+)\?)", rf"((((http)|(https))://mybinder\.org/v2/gh/{REPOSITORY}/)([\w-]+)\?)",
), ),
"replacement": fr"\2{branch}?", "replacement": rf"\2{branch}?",
}, },
] ]